class_docstr: XNLI: The Cross-Lingual NLI Corpus. Version 1.0.
docstr: This function returns the examples in the raw (text) form.
docstr_tok: ["This","function","returns","the","examples","in","the","raw","(","text",")","form","."]
code: def _generate_examples(self, filepath):
      """This function returns the examples in the raw (text) form."""
      rows_per_pair_id = collections.defaultdict(list)
  
      with epath.Path(filepath).open() as f:
          reader = csv.DictReader(
              f, delimiter="\t", quoting=csv.QUOTE_NONE
          )
          for row in reader:
              rows_per_pair_id[row["pairID"]].append(row)
  
      for rows in rows_per_pair_id.values():
          premise = {row["language"]: row["sentence1"] for row in rows}
          hypothesis = {
              row["language"]: row["sentence2"] for row in rows
          }
          yield rows[0]["pairID"], {
              "premise": premise,
              "hypothesis": hypothesis,
              "label": rows[0]["gold_label"],
          }
  
file_path: datasets/tensorflow_datasets/text/xnli.py
imports: import collections
  import csv
  import os
  from etils import epath
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling the Xnli obj's underlying member method code with example usage: obj._generate_examples(filepath) without return types