code: def parse_arguments():
      import argparse
      import ast
  
      parser = argparse.ArgumentParser()
      parser.add_argument(
          "--model", required=True, help="Path of PaddleSeg model."
      )
      parser.add_argument(
          "--image",
          type=str,
          required=True,
          help="Path of test image file.",
      )
      parser.add_argument(
          "--bg",
          type=str,
          required=True,
          default=None,
          help="Path of test background image file.",
      )
      parser.add_argument(
          "--device",
          type=str,
          default="cpu",
          help="Type of inference device, support 'cpu', 'kunlunxin' or 'gpu'.",
      )
      parser.add_argument(
          "--use_trt",
          type=ast.literal_eval,
          default=False,
          help="Wether to use tensorrt.",
      )
      return parser.parse_args()
  
imports: import fastdeploy
  import cv2
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: parse_arguments() and returns: parser