class_docstr: DatasetBuilder for unnatural_instructions dataset.
docstr: Parses available JSON files in a given split, returns TF examples.
docstr_tok: ["Parses","available","JSON","files","in","a","given","split",",","returns","TF","examples","."]
code: def _generate_examples(
      self,
      jsonl_path,
  ) -> Generator[Tuple[str, Mapping[str, Any]], None, None]:
      """Parses available JSON files in a given split, returns TF examples."""
      count = 0
      for file in [f.open() for f in jsonl_path.glob("*")]:
          for line in file:
              ex = json.loads(line)
              # Note: We perform minimal data massaging to preserve original struct.
              if "reformulations" not in ex:
                  ex["reformulations"] = []
              ex["id"] = str(count)
              count += 1
              yield str(count), ex
  
file_path: datasets/tensorflow_datasets/text/unnatural_instructions/unnatural_instructions.py
imports: from __future__ import annotations
  import json
  from typing import Generator, Any, Tuple, Mapping
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling the UnnaturalInstructions obj's underlying member method code with example usage: obj._generate_examples(jsonl_path) without return types