code: def parse_args():
      parser = argparse.ArgumentParser(
          description="Convert MOT label and detections to COCO-VID format."
      )
      parser.add_argument("-i", "--input", help="path of MOT data")
      parser.add_argument(
          "-o",
          "--output",
          help="path to save coco formatted label file",
      )
      parser.add_argument(
          "--convert-det",
          action="store_true",
          help="convert official detection results.",
      )
      parser.add_argument(
          "--split-train",
          action="store_true",
          help="split the train set into half-train and half-validate.",
      )
      return parser.parse_args()
  
file_path: mmdetection/tools/dataset_converters/mot2coco.py
imports: import argparse
  import os
  import os.path
  from collections import defaultdict
  import mmengine
  import numpy
  from tqdm import tqdm
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: parser