code: def parse_args():
      parser = argparse.ArgumentParser(
          description="Collect image metas"
      )
      parser.add_argument("config", help="Config file path")
      parser.add_argument(
          "--dataset",
          choices=["train", "val"],
          help="Collect image metas from which dataset",
      )
      parser.add_argument(
          "--nproc",
          default=10,
          type=int,
          help="Processes used for get image metas",
      )
      args = parser.parse_args()
      return args
  
file_path: mmdetection/tools/misc/get_crowdhuman_id_hw.py
imports: import argparse
  import json
  import logging
  import os.path
  from multiprocessing import Pool
  import mmcv
  from mmengine.config import Config
  from mmengine.fileio import dump, get, get_text
  from mmengine.logging import print_log
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: args