code: def par_crop(args, ann_base_path):
      """
      Dataset curation, crop data and transform the format of label
      Parameters
      ----------
      ann_base_path: str, Annotations base path
      """
      crop_path = os.path.join(
          args.download_dir,
          "./crop{:d}".format(int(args.instance_size)),
      )
      if not os.path.isdir(crop_path):
          makedirs(crop_path)
      sub_sets = sorted({"a", "b", "c", "d", "e"})
      for sub_set in sub_sets:
          sub_set_base_path = os.path.join(ann_base_path, sub_set)
          videos = sorted(os.listdir(sub_set_base_path))
          n_videos = len(videos)
          with futures.ProcessPoolExecutor(
              max_workers=args.num_threads
          ) as executor:
              fs = [
                  executor.submit(
                      crop_video,
                      args,
                      sub_set,
                      video,
                      crop_path,
                      ann_base_path,
                  )
                  for video in videos
              ]
              for i, f in enumerate(futures.as_completed(fs)):
                  # Write progress to error so that it can be seen
                  printProgress(
                      i,
                      n_videos,
                      prefix=sub_set,
                      suffix="Done ",
                      barLength=40,
                  )
  
file_path: gluon-cv/scripts/datasets/ilsvrc_vid.py
imports: import json
  import os
  import glob
  from concurrent import futures
  import time
  import argparse
  import tarfile
  import numpy
  from gluoncv.utils import download, makedirs
  from gluoncv.utils.filesystem import try_import_cv2
  from gluoncv.utils.data.tracking import crop_like_SiamFC, printProgress
label_desc: Use image node_id 5 for calling a global function with example usage: par_crop(args, ann_base_path) without return types