code: def _generate_examples(self, imgs_path, csv_path):
      
      with tf.io.gfile.GFile(csv_path) as csv_f:
        reader = csv.DictReader(csv_f)
        # Get keys for each label from csv
        label_keys = reader.fieldnames[5:]
        data = []
        for row in reader:
          # Get image based on indicated path in csv
          name = row["Path"]
          labels = [_LABELS[row[key]] for key in label_keys]
          data.append((name, labels))
  
      for name, labels in data:
        yield {
            "name": name,
            "image": os.path.join(imgs_path, name),
            "label": labels
        }
docs: Yields examples.