How to convert a UE LUT to eg CUBE or other formats?

I know how to create LUT images for Unreal Engine.

But how do I turn it to a LUT that I can use on Photoshop?