class_docstr: The Abstraction and Reasoning Corpus (ARC).
docstr: Yields (key, example) tuples from the dataset.
docstr_tok: ["Yields","(","key",",","example",")","tuples","from","the","dataset","."]
code: def _generate_examples(self, directory):
      """Yields (key, example) tuples from the dataset."""
      json_filepaths = tf.io.gfile.glob(
          os.path.join(directory, "*.json")
      )
      for json_path in sorted(json_filepaths):
          with epath.Path(json_path).open() as f:
              task = json.load(f)
          task_id = os.path.basename(json_path)[: -len(".json")]
          yield task_id, {
              "task_id": task_id,
              "train": task["train"],
              "test": task["test"],
          }
  
file_path: datasets/tensorflow_datasets/datasets/arc/arc_dataset_builder.py
imports: import json
  import os
  from etils import epath
  import numpy
  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 Builder obj's underlying member method code with example usage: obj._generate_examples(directory) without return types