code: def imread(img_file: str) -> np.ndarray:
      if cv2:
          return cv2.imread(img_file).astype(np.float32)
      return io.imread(img_file).astype(np.float32)
  
imports: import logging
  import numpy
  from ray.rllib.utils.annotations import DeveloperAPI
label_desc: Use image node_id 3 for calling a global function with example usage: imread(img_file) and returns: io, cv2