class_docstr: DatasetBuilder for docnli dataset.
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, path):
      """Yields examples."""
      # Yields (key, example) tuples from the dataset
      data = json.loads(path.read_text())
      for idx, row in enumerate(data):
          yield idx, {
              "premise": row["premise"],
              "hypothesis": row["hypothesis"],
              "label": row["label"],
          }
  
imports: import json
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling the DocNLI obj's underlying member method code with example usage: obj._generate_examples(path) without return types