code: def pil_loader(path):
      # open path as file to avoid ResourceWarning
      # (https://github.com/python-pillow/Pillow/issues/835)
      with open(path, "rb") as f:
          with Image.open(f) as img:
              return img.convert("RGB")
  
file_path: gluon-cv/gluoncv/data/kitti/mono_dataset.py
imports: import random
  import copy
  import numpy
  from PIL import Image
  import mxnet
  from mxnet.gluon.data import dataset
  from mxnet.gluon.data.vision import transforms
label_desc: Use image node_id 1 for calling a global function with example usage: pil_loader(path) and returns: img