code: def format_mrpc(data_dir):
      mrpc_dir = os.path.join(data_dir, "mrpc")
      os.makedirs(mrpc_dir, exist_ok=True)
      mrpc_train_file = os.path.join(
          mrpc_dir, "msr_paraphrase_train.txt"
      )
      mrpc_test_file = os.path.join(mrpc_dir, "msr_paraphrase_test.txt")
      download(
          GLUE_TASK2PATH["mrpc"]["train"],
          mrpc_train_file,
          sha1_hash=_URL_FILE_STATS[GLUE_TASK2PATH["mrpc"]["train"]],
      )
      download(
          GLUE_TASK2PATH["mrpc"]["test"],
          mrpc_test_file,
          sha1_hash=_URL_FILE_STATS[GLUE_TASK2PATH["mrpc"]["test"]],
      )
      assert os.path.isfile(mrpc_train_file), (
          "Train data not found at %s" % mrpc_train_file
      )
      assert os.path.isfile(mrpc_test_file), (
          "Test data not found at %s" % mrpc_test_file
      )
      download(
          GLUE_TASK2PATH["mrpc"]["dev"],
          os.path.join(mrpc_dir, "dev_ids.tsv"),
          sha1_hash=_URL_FILE_STATS[GLUE_TASK2PATH["mrpc"]["dev"]],
      )
  
      dev_ids = []
      with open(
          os.path.join(mrpc_dir, "dev_ids.tsv"), encoding="utf8"
      ) as ids_fh:
          for row in ids_fh:
              dev_ids.append(row.strip().split("\t"))
  
      with open(mrpc_train_file, encoding="utf8") as data_fh, open(
          os.path.join(mrpc_dir, "train.tsv"), "w", encoding="utf8"
      ) as train_fh, open(
          os.path.join(mrpc_dir, "dev.tsv"), "w", encoding="utf8"
      ) as dev_fh:
          header = data_fh.readline()
          train_fh.write(header)
          dev_fh.write(header)
          for row in data_fh:
              label, id1, id2, s1, s2 = row.strip().split("\t")
              if [id1, id2] in dev_ids:
                  dev_fh.write(
                      "%s\t%s\t%s\t%s\t%s\n" % (label, id1, id2, s1, s2)
                  )
              else:
                  train_fh.write(
                      "%s\t%s\t%s\t%s\t%s\n" % (label, id1, id2, s1, s2)
                  )
  
      with open(mrpc_test_file, encoding="utf8") as data_fh, open(
          os.path.join(mrpc_dir, "test.tsv"), "w", encoding="utf8"
      ) as test_fh:
          header = data_fh.readline()
          test_fh.write("index\t#1 ID\t#2 ID\t#1 String\t#2 String\n")
          for idx, row in enumerate(data_fh):
              label, id1, id2, s1, s2 = row.strip().split("\t")
              test_fh.write(
                  "%d\t%s\t%s\t%s\t%s\n" % (idx, id1, id2, s1, s2)
              )
  
imports: import os
  import shutil
  import argparse
  import zipfile
  import json
  import pandas
  import pyarrow
  import pyarrow.json
  from gluonnlp.utils.misc import download, load_checksum_stats
  from gluonnlp.base import get_data_home_dir
  from gluonnlp.data.tokenizers import WhitespaceTokenizer
label_desc: Use image node_id 24 for calling a global function with example usage: format_mrpc(data_dir) without return types