code: def parse_args():
      parser = argparse.ArgumentParser(
          description="infer by onnxruntime"
      )
      parser.add_argument(
          "--img_path",
          dest="img_path",
          help="The directory or path or file list of the images to be predicted.",
          type=str,
          default=None,
          required=True,
      )
      parser.add_argument(
          "--onnx_file",
          dest="onnx_file",
          help="The onnx model path.",
          type=str,
          default=None,
          required=True,
      )
      parser.add_argument(
          "--save_dir",
          dest="save_dir",
          help="The directory for saving the predict result.",
          type=str,
          default="./output",
      )
  
      return parser.parse_args()
  
file_path: PaddleSeg/deploy/python/infer_onnx.py
imports: import argparse
  import os
  import numpy
  import cv2
  from paddleseg.transforms import Normalize, Compose
  from paddleseg.utils import get_image_list
  from paddleseg.utils.visualize import get_pseudo_color_map
  from onnxruntime import InferenceSession
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: parser