class_docstr: SI-Score synthetic image dataset.
class_docstr_tok: ["SI-Score","synthetic","image","dataset","."]
docstr: Yields examples of synthetic data images and labels.
docstr_tok: ["Yields","examples","of","synthetic","data","images","and","labels","."]
code: def _generate_examples(self, datapath):
      """Yields examples of synthetic data images and labels."""
      for fpath in tf.io.gfile.glob(
          os.path.join(datapath, "*", "*.jpg")
      ):
          label = fpath.split("/")[-2]
          fname = os.path.basename(fpath)
          record = {
              "image": fpath,
              "image_id": int(fname.split(".")[0]),
              "label": labels.IMAGENET_LABELS[label],
              "dataset_label": labels.DATASET_LABELS[label],
          }
          yield fname, record
  
file_path: datasets/tensorflow_datasets/datasets/siscore/siscore_dataset_builder.py
imports: import dataclasses
  import os
  import numpy
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  from tensorflow_datasets.datasets.siscore import labels
  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(datapath) without return types