class_docstr: Multi Sentence Reasoning with Explanations (Eraser Benchmark).
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, data_dir, filepath):
      """Yields examples."""
  
      multirc_dir = os.path.join(data_dir, "docs")
      with epath.Path(filepath).open() as f:
          for line in f:
              row = json.loads(line)
              evidences = []
  
              for evidence in row["evidences"][0]:
                  docid = evidence["docid"]
                  evidences.append(evidence["text"])
  
              passage_file = os.path.join(multirc_dir, docid)
              with epath.Path(passage_file).open() as f1:
                  passage_text = f1.read()
  
              yield row["annotation_id"], {
                  "passage": passage_text,
                  "query_and_answer": row["query"],
                  "label": row["classification"],
                  "evidences": evidences,
              }
  
file_path: datasets/tensorflow_datasets/text/eraser_multi_rc.py
imports: import json
  import os
  from etils import epath
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling the EraserMultiRc obj's underlying member method code with example usage: obj._generate_examples(data_dir, filepath) without return types