code: def main(arguments):
      parser = argparse.ArgumentParser()
      parser.add_argument(
          "--data_dir",
          help="directory to save data to",
          type=str,
          default="data",
      )
      parser.add_argument(
          "--tasks",
          help="tasks to download data for as a comma separated string",
          type=str,
          default="all",
      )
      parser.add_argument(
          "--path_to_mrpc",
          help="path to directory containing extracted MRPC data, "
          "msr_paraphrase_train.txt and msr_paraphrase_text.txt",
          type=str,
          default="",
      )
      args = parser.parse_args(arguments)
  
      if not os.path.isdir(args.data_dir):
          os.mkdir(args.data_dir)
      tasks = get_tasks(args.tasks)
  
      for task in tasks:
          if task == "MRPC":
              import subprocess
  
              if not os.path.exists("data/MRPC"):
                  subprocess.run("mkdir data/MRPC", shell=True)
              # pylint: disable=line-too-long
              subprocess.run(
                  "wget -P data/MRPC/ https://dl.fbaipublicfiles.com/senteval/senteval_data/msr_paraphrase_train.txt",
                  shell=True,
              )
              subprocess.run(
                  "wget -P data/MRPC/ https://dl.fbaipublicfiles.com/senteval/senteval_data/msr_paraphrase_test.txt",
                  shell=True,
              )
              # pylint: enable=line-too-long
              format_mrpc(args.data_dir, args.path_to_mrpc)
              subprocess.run(
                  "rm data/MRPC/msr_paraphrase_train.txt", shell=True
              )
              subprocess.run(
                  "rm data/MRPC/msr_paraphrase_test.txt", shell=True
              )
          elif task == "diagnostic":
              download_diagnostic(args.data_dir)
          else:
              download_and_extract(task, args.data_dir)
  
file_path: texar/examples/bert/data/download_glue_data.py
imports: import argparse
  import os
  import sys
  import urllib.request
  import zipfile
label_desc: Use image node_id 5 for calling a global function with example usage: main(arguments) without return types