code: def parse_args():
      parser = argparse.ArgumentParser(description="Model prediction")
  
      # params of prediction
      parser.add_argument(
          "--config",
          dest="cfg",
          help="The config file.",
          default=None,
          type=str,
      )
      parser.add_argument(
          "--model_path",
          dest="model_path",
          help="The path of model for prediction",
          type=str,
          default=None,
      )
      parser.add_argument(
          "--image_path",
          dest="image_path",
          help="The path of image, it can be a file or a directory including images",
          type=str,
          default=None,
      )
      parser.add_argument(
          "--save_dir",
          dest="save_dir",
          help="The directory for saving the predicted results",
          type=str,
          default="./output/result",
      )
      parser.add_argument(
          "--threshold",
          dest="threshold",
          help="Threshold applied to center heatmap score",
          type=float,
          default=0.1,
      )
      parser.add_argument(
          "--nms_kernel",
          dest="nms_kernel",
          help="NMS max pooling kernel size",
          type=int,
          default=7,
      )
      parser.add_argument(
          "--top_k",
          dest="top_k",
          help="Top k centers to keep",
          type=int,
          default=200,
      )
  
      return parser.parse_args()
  
file_path: PaddleSeg/contrib/PanopticDeepLab/predict.py
imports: import argparse
  import os
  import paddle
  from paddleseg.cvlibs import manager, Config
  from paddleseg.utils import get_sys_env, logger
  from core import predict
  from datasets import CityscapesPanoptic
  from models import PanopticDeepLab
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: parser