class_docstr: QaSC Dataset.
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, filepath):
      """Yields examples."""
  
      with tf.io.gfile.GFile(filepath, "r") as f:
          for row in f:
              data = json.loads(row)
              answerkey = data.get("answerKey", "")
              id_ = data["id"]
              question = data["question"]["stem"]
              choices = data["question"]["choices"]
              text_choices = [choice["text"] for choice in choices]
              label_choices = [choice["label"] for choice in choices]
              fact1 = data.get("fact1", "")
              fact2 = data.get("fact2", "")
              combined_fact = data.get("combinedfact", "")
              formatted_question = data.get("formatted_question", "")
              yield id_, {
                  "id": id_,
                  "answerKey": answerkey,
                  "question": question,
                  "choices": {
                      "text": text_choices,
                      "label": label_choices,
                  },
                  "fact1": fact1,
                  "fact2": fact2,
                  "combinedfact": combined_fact,
                  "formatted_question": formatted_question,
              }
  
file_path: datasets/tensorflow_datasets/datasets/qasc/qasc_dataset_builder.py
imports: import json
  import os
  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(filepath) without return types