code: def read_image(path):
      """Read image and output RGB image (0-1).
  
      Args:
          path (str): path to file
  
      Returns:
          array: RGB image (0-1)
      """
      img = cv2.imread(path)
  
      if img.ndim == 2:
          img = cv2.cvtColor(img, cv2.COLOR_GRAY2BGR)
  
      img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB) / 255.0
  
      return img
  
file_path: carefree-learn/cflearn/api/cv/third_party/midas/utils.py
imports: import sys
  import re
  import numpy
  import torch
label_desc: Use image node_id 3 for calling a global function with example usage: read_image(path) and returns: img