code: def read_jpegs(folder):
      with open(folder + "/image_list.txt", "r") as file:
          files = [line.rstrip() for line in file]
  
      images = []
      for fname in files:
          f = open(image_folder + "/" + fname, "rb")
          images.append(np.fromstring(f.read(), dtype=np.uint8))
      return images
  
imports: import argparse
  from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.ops
  import nvidia.dali.types
  import numpy
  from timeit import default_timer
label_desc: Use image node_id 1 for calling a global function with example usage: read_jpegs(folder) and returns: images