class_docstr: DatasetBuilder for drop dataset.
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, filepath):
      """Yields examples."""
      original_data = json.loads(filepath.read_text())
      for _, example in original_data.items():
          passage = example["passage"]
          for idx, qa in enumerate(example["qa_pairs"]):
              question = qa["question"]
              answer = _get_answer(qa["answer"])
              validated_answers = [
                  _get_answer(v_answer)
                  for v_answer in qa.get("validated_answers", [])
              ]
              yield qa["query_id"] + str(idx), {
                  "passage": passage,
                  "question": question,
                  "answer": answer,
                  "validated_answers": validated_answers,
                  "query_id": qa["query_id"] + str(idx),
              }
  
file_path: datasets/tensorflow_datasets/text/drop/drop.py
imports: import json
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling the Drop obj's underlying member method code with example usage: obj._generate_examples(filepath) without return types