code: def load_image_file(file, mode="RGB"):
      """
      Loads an image file (.jpg, .png, etc) into a numpy array
  
      :param file: image file name or file object to load
      :param mode: format to convert the image to. Only 'RGB' (8-bit RGB, 3 channels) and 'L' (black and white) are supported.
      :return: image contents as numpy array
      """
      im = PIL.Image.open(file)
      if mode:
          im = im.convert(mode)
      return np.array(im)
  
file_path: face_recognition/face_recognition/api.py
imports: import PIL.Image
  import dlib
  import numpy
  from PIL import ImageFile
label_desc: Use image node_id 5 for calling a global function with example usage: load_image_file(file, mode) and returns: np