class_docstr: The Cosmos QA dataset.
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, file_path):
      """This function returns the examples in the raw (text) form."""
      with epath.Path(file_path).open() as f:
          # Test is in jsonl format whereas train and dev in tsv.
          if file_path.suffix == ".jsonl":
              for line in f:
                  row = json.loads(line)
                  row["label"] = -1
                  yield row["id"], row
          else:
              reader = csv.DictReader(f, delimiter=",")
              for row in reader:
                  yield row["id"], row
  
file_path: datasets/tensorflow_datasets/question_answering/cosmos_qa.py
imports: import csv
  import json
  from etils import epath
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling the CosmosQA obj's underlying member method code with example usage: obj._generate_examples(file_path) without return types