code: def loadImage(img_file):
      img = io.imread(img_file)  # RGB order
      if img.shape[0] == 2:
          img = img[0]
      if len(img.shape) == 2:
          img = cv2.cvtColor(img, cv2.COLOR_GRAY2RGB)
      if img.shape[2] == 4:
          img = img[:, :, :3]
      img = np.array(img)
  
      return img
  
imports: import numpy
  from skimage import io
  import cv2
label_desc: Use image node_id 1 for calling a global function with example usage: loadImage(img_file) and returns: img