Reading and Visualizing .raw images for CNN development

I am provided with a .raw image file to develop a 3d ML prediction. How can I read and visualizes the data/images in the raw file? Thanks

First you have to know what format was used to store the .raw image.