class_docstr: A Conversational Question Answering Challenge.
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, filepath):
      """Yields examples."""
  
      with tf.io.gfile.GFile(filepath, "r") as f:
          data = json.load(f)
          for row in data["data"]:
              questions = [
                  question["input_text"]
                  for question in row["questions"]
              ]
              story = row["story"]
              source = row["source"]
              answers_start = [
                  answer["span_start"] for answer in row["answers"]
              ]
              answers_end = [
                  answer["span_end"] for answer in row["answers"]
              ]
              answers = [
                  answer["input_text"] for answer in row["answers"]
              ]
              yield row["id"], {
                  "source": source,
                  "story": story,
                  "questions": questions,
                  "answers": {
                      "input_text": answers,
                      "answer_start": answers_start,
                      "answer_end": answers_end,
                  },
              }
  
file_path: datasets/tensorflow_datasets/question_answering/coqa/coqa.py
imports: from __future__ import annotations
  import json
  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 Coqa obj's underlying member method code with example usage: obj._generate_examples(filepath) without return types