code: def parse_args():
      parser = argparse.ArgumentParser(
          description="Setup the ImageNet dataset.",
          formatter_class=argparse.ArgumentDefaultsHelpFormatter,
      )
      parser.add_argument(
          "--download-dir",
          required=True,
          help="The directory that contains downloaded tar files",
      )
      parser.add_argument(
          "--target-dir",
          default=_TARGET_DIR,
          help="The directory to store extracted images",
      )
      parser.add_argument(
          "--checksum",
          action="store_true",
          help="If check integrity before extracting.",
      )
      parser.add_argument(
          "--with-rec",
          action="store_true",
          help="If build image record files.",
      )
      parser.add_argument(
          "--num-thread",
          type=int,
          default=1,
          help="Number of threads to use when building image record file.",
      )
      args = parser.parse_args()
      return args
  
file_path: gluon-cv/scripts/datasets/imagenet.py
imports: import os
  import argparse
  import tarfile
  import pickle
  import gzip
  import subprocess
  from tqdm import tqdm
  from mxnet.gluon.utils import check_sha1
  from gluoncv.utils import download, makedirs
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: args