class_docstr: Healthy and unhealthy plant leaves dataset.
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, archive):
      """Yields examples."""
      for filename, fobj in archive:
          if not filename.endswith(".JPG"):
              continue
          fname_split = filename.split(os.path.sep)
          label = fname_split[-3] + " " + fname_split[-2]
          record = {
              "image": fobj,
              "image/filename": fname_split[-1],
              "label": label,
          }
          yield fname_split[-1], record
  
file_path: datasets/tensorflow_datasets/datasets/plant_leaves/plant_leaves_dataset_builder.py
imports: import os
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling the Builder obj's underlying member method code with example usage: obj._generate_examples(archive) without return types