class_docstr: The General Language Understanding Evaluation (GLUE) benchmark.
class_docstr_tok: ["The","General","Language","Understanding","Evaluation","(","GLUE",")","benchmark","."]
code: def _generate_example_mrpc_files(self, mrpc_files, split):
      if split == "test":
          with epath.Path(mrpc_files["test"]).open() as f:
              reader = csv.DictReader(
                  f, delimiter="\t", quoting=csv.QUOTE_NONE
              )
              for n, row in enumerate(reader):
                  yield {
                      "sentence1": row["#1 String"],
                      "sentence2": row["#2 String"],
                      "label": -1,
                      "idx": n,
                  }
      else:
          with epath.Path(mrpc_files["dev_ids"]).open() as f:
              reader = csv.reader(
                  f, delimiter="\t", quoting=csv.QUOTE_NONE
              )
              dev_ids = [[row[0], row[1]] for row in reader]
          with epath.Path(mrpc_files["train"]).open() as f:
              # The first 3 bytes are the utf-8 BOM \xef\xbb\xbf, which messes with
              # the Quality key.
              f.seek(3)
              reader = csv.DictReader(
                  f, delimiter="\t", quoting=csv.QUOTE_NONE
              )
              for n, row in enumerate(reader):
                  is_row_in_dev = [
                      row["#1 ID"],
                      row["#2 ID"],
                  ] in dev_ids
                  if is_row_in_dev == (split == "dev"):
                      yield {
                          "sentence1": row["#1 String"],
                          "sentence2": row["#2 String"],
                          "label": int(row["Quality"]),
                          "idx": n,
                      }
  
file_path: datasets/tensorflow_datasets/text/glue.py
imports: import csv
  import os
  import textwrap
  from etils import epath
  import numpy
  import six
  import tensorflow_datasets.public_api
label_desc: Use image node_id 4 for calling the Glue obj's underlying member method code with example usage: obj._generate_example_mrpc_files(mrpc_files, split) without return types