class_docstr: QA dataset with common knowledge facts.
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, data_dir, filepath):
      """Yields examples."""
  
      with epath.Path(filepath).open() as f:
          for line in f:
              row = json.loads(line)
              question = {}
              question["stem"] = row["question"]["stem"]
              choices = row["question"]["choices"]
              question["choice_A"] = choices[0]["text"]
              question["choice_B"] = choices[1]["text"]
              question["choice_C"] = choices[2]["text"]
              question["choice_D"] = choices[3]["text"]
  
              yield row["id"], {
                  "question": question,
                  "fact1": row["fact1"],
                  "humanScore": row["humanScore"],
                  "clarity": row["clarity"],
                  "turkIdAnonymized": row["turkIdAnonymized"],
                  "answerKey": row["answerKey"],
              }
  
file_path: datasets/tensorflow_datasets/datasets/openbookqa/openbookqa_dataset_builder.py
imports: import json
  import os
  from etils import epath
  import numpy
  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(data_dir, filepath) without return types