code: def argsparser():
      parser = ArgsParser()
      parser.add_argument(
          "--config",
          type=str,
          default=None,
          help=("Path of configure"),
          required=True,
      )
      parser.add_argument(
          "--input",
          type=str,
          default=None,
          help="Suport path of one image file and the directory of images.",
          required=True,
      )
      parser.add_argument(
          "--output_dir",
          type=str,
          default="output",
          help="Directory of output visualization files.",
      )
      parser.add_argument(
          "--device",
          type=str,
          default="gpu",
          choices=["cpu", "gpu", "xpu", "npu", "mlu"],
          help="Choose the device you want to run, it can be: cpu/gpu/xpu/npu/mlu, default is gpu.",
      )
      return parser.parse_args()
  
file_path: PaddleSeg/contrib/QualityInspector/tools/end2end/predict.py
imports: from __future__ import absolute_import, division, print_function
  import os
  import sys
  import paddle
  from qinspector.apis.pipeline import Pipeline
  from qinspector.cvlib.configs import ArgsParser
label_desc: Use image node_id 1 for calling a global function with example usage: argsparser() and returns: parser