code: def parse_args():
      parser = argparse.ArgumentParser(
          description="Convert MOT dataset into ReID dataset."
      )
      parser.add_argument("-i", "--input", help="path of MOT data")
      parser.add_argument(
          "-o", "--output", help="path to save ReID dataset"
      )
      parser.add_argument(
          "--val-split",
          type=float,
          default=0.2,
          help="proportion of the validation dataset to the whole ReID dataset",
      )
      parser.add_argument(
          "--vis-threshold",
          type=float,
          default=0.3,
          help="threshold of visibility for each person",
      )
      parser.add_argument(
          "--min-per-person",
          type=int,
          default=8,
          help="minimum number of images for each person",
      )
      parser.add_argument(
          "--max-per-person",
          type=int,
          default=1000,
          help="maxmum number of images for each person",
      )
      return parser.parse_args()
  
file_path: mmdetection/tools/dataset_converters/mot2reid.py
imports: import argparse
  import os
  import os.path
  import random
  import mmcv
  import numpy
  from mmengine.fileio import list_from_file
  from tqdm import tqdm
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: parser