code: def parse_args():
      parser = argparse.ArgumentParser()
      parser.add_argument("data_root", type=str, help="The data root.")
      parser.add_argument("ann_file", type=str)
      parser.add_argument("img_prefix", type=str)
      parser.add_argument(
          "out_dir",
          type=str,
          help="The output directory of coco semi-supervised annotations.",
      )
      parser.add_argument(
          "--label-map-file", "-m", type=str, help="label map file"
      )
      parser.add_argument(
          "--num-img",
          "-n",
          default=200,
          type=int,
          help="num of extract image, -1 means all images",
      )
      parser.add_argument("--seed", default=-1, type=int, help="seed")
      args = parser.parse_args()
      return args
  
file_path: mmdetection/tools/misc/split_odvg.py
imports: import argparse
  import json
  import os
  import shutil
  import jsonlines
  import numpy
  from mmengine.utils import ProgressBar, mkdir_or_exist
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: args