code: def each_img(img_dir):
      
      for fname in utils.each_img(img_dir):
          fname = os.path.join(img_dir, fname)
          yield cv.imread(fname), fname
docs: Reads and iterates through each image file in the given directory