code: def parse_args():
      parser = argparse.ArgumentParser(
          description="Convert ADE20K annotations to COCO format"
      )
      parser.add_argument("src", help="ade20k data path")
      parser.add_argument(
          "--task", help="task name", default="panoptic"
      )
      args = parser.parse_args()
      return args
  
file_path: mmdetection/tools/dataset_converters/ade20k2coco.py
imports: import argparse
  import json
  import os
  from pathlib import Path
  import numpy
  import pycocotools.mask
  from mmengine.utils import ProgressBar, mkdir_or_exist
  from panopticapi.utils import IdGenerator, save_json
  from PIL import Image
  from mmdet.datasets.ade20k import ADE20KPanopticDataset
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: args