class_docstr: CheXpert 2019.
class_docstr_tok: ["CheXpert","2019","."]
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, imgs_path, csv_path):
      """Yields examples."""
      with epath.Path(csv_path).open() as csv_f:
          reader = csv.DictReader(csv_f)
          # Get keys for each label from csv
          label_keys = reader.fieldnames[5:]
          for row in reader:
              # Get image based on indicated path in csv
              name = row["Path"]
              labels = [_LABELS[row[key]] for key in label_keys]
              image_view = row["Frontal/Lateral"].lower()
              yield name, {
                  "name": name,
                  "image": os.path.join(imgs_path, name),
                  "label": labels,
                  "image_view": image_view,
              }
  
file_path: datasets/tensorflow_datasets/image_classification/chexpert.py
imports: import collections
  import csv
  import os
  from etils import epath
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling the Chexpert obj's underlying member method code with example usage: obj._generate_examples(imgs_path, csv_path) without return types