class_docstr: DatasetBuilder for math_qa dataset.
class_docstr_tok: ["DatasetBuilder","for","math_qa","dataset","."]
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, filename: str):
      """Yields examples."""
      with epath.Path(filename).open() as f:
          for i, ex in enumerate(json.load(f)):
              ex["correct_option"] = extract_answer_text(
                  ex["options"], ex["correct"]
              )
              yield i, ex
  
file_path: datasets/tensorflow_datasets/datasets/math_qa/math_qa_dataset_builder.py
imports: import json
  import os
  import re
  from etils import epath
  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(filename) without return types