pil image from numpy

from PIL import Image
image_from_array = Image.fromarray(nd_array)

Here is what the above code is Doing:
1. Importing the Image module from the PIL library.
2. Creating an Image object from the ndarray.
3. Saving the image to a file.