code: def parse_pred_args(*args, **kwargs):
      parser = argparse.ArgumentParser(description="Model prediction")
  
      # params of prediction
      parser.add_argument(
          "--config",
          dest="cfg",
          help="Config file.",
          default=None,
          type=str,
      )
      parser.add_argument(
          "--model_path",
          help="Path of the model for prediction.",
          type=str,
          default=None,
      )
      parser.add_argument(
          "--image_path",
          help="Path of the input image, which can be a file or a directory that contains images.",
          type=str,
          default=None,
      )
      parser.add_argument(
          "--save_dir",
          help="Directory to save the predicted results.",
          type=str,
          default="./output/result",
      )
  
      return parser.parse_args(*args, **kwargs)
  
imports: import argparse
  from paddleseg.utils import logger, get_image_list, utils
  from paddlepanseg.core import predict
  from paddlepanseg.cvlibs import Config, make_default_builder
  from paddlepanseg.transforms import constr_test_transforms
label_desc: Use image node_id 1 for calling a global function with example usage: parse_pred_args() and returns: parser