code: def par_crop(args):
      """
      Dataset curation,crop data and transform the format of a label
      """
      crop_path = os.path.join(
          args.download_dir, "./crop{:d}".format(args.instance_size)
      )
      if not os.path.isdir(crop_path):
          makedirs(crop_path)
      VID_base_path = os.path.join(args.download_dir, "./ILSVRC")
      ann_base_path = os.path.join(
          VID_base_path, "Annotations/DET/train/"
      )
      sub_sets = ("a", "b", "c", "d", "e", "f", "g", "h", "i")
      for sub_set in sub_sets:
          sub_set_base_path = os.path.join(ann_base_path, sub_set)
          if "a" == sub_set:
              xmls = sorted(
                  glob.glob(
                      os.path.join(sub_set_base_path, "*", "*.xml")
                  )
              )
          else:
              xmls = sorted(
                  glob.glob(os.path.join(sub_set_base_path, "*.xml"))
              )
          n_imgs = len(xmls)
          sub_set_crop_path = os.path.join(crop_path, sub_set)
          with futures.ProcessPoolExecutor(
              max_workers=args.num_threads
          ) as executor:
              fs = [
                  executor.submit(
                      crop_xml,
                      args,
                      xml,
                      sub_set_crop_path,
                      args.instance_size,
                  )
                  for xml in xmls
              ]
              for i, f in enumerate(futures.as_completed(fs)):
                  printProgress(
                      i,
                      n_imgs,
                      prefix=sub_set,
                      suffix="Done ",
                      barLength=80,
                  )
  
file_path: gluon-cv/scripts/datasets/ilsvrc_det.py
imports: import argparse
  import tarfile
  import os
  import glob
  import json
  import time
  from concurrent import futures
  import numpy
  from gluoncv.utils.filesystem import try_import_cv2
  from gluoncv.utils import download, makedirs
  from gluoncv.utils.data.tracking import crop_like_SiamFC, printProgress
label_desc: Use image node_id 4 for calling a global function with example usage: par_crop(args) without return types