code: def parse_args():
      parser = argparse.ArgumentParser(
          description="PP-HumanSeg inference for video"
      )
      parser.add_argument(
          "--config",
          help="The config file of the inference model.",
          type=str,
          required=True,
      )
      parser.add_argument(
          "--img_path", help="The image that to be predicted.", type=str
      )
      parser.add_argument(
          "--video_path", help="Video path for inference", type=str
      )
      parser.add_argument(
          "--bg_img_path",
          help="Background image path for replacing. If not specified, a white background is used",
          type=str,
      )
      parser.add_argument(
          "--bg_video_path",
          help="Background video path for replacing",
          type=str,
      )
      parser.add_argument(
          "--save_dir",
          help="The directory for saving the inference results",
          type=str,
          default="./output",
      )
  
      parser.add_argument(
          "--vertical_screen",
          help="The input image is generated by vertical screen, i.e. height is bigger than width."
          "For the input image, we assume the width is bigger than the height by default.",
          action="store_true",
      )
      parser.add_argument(
          "--use_post_process",
          help="Use post process.",
          action="store_true",
      )
      parser.add_argument(
          "--use_optic_flow",
          help="Use optical flow.",
          action="store_true",
      )
      parser.add_argument(
          "--test_speed",
          help="Whether to test inference speed",
          action="store_true",
      )
  
      return parser.parse_args()
  
file_path: PaddleSeg/contrib/PP-HumanSeg/src/seg_demo.py
imports: import argparse
  import os
  import sys
  import cv2
  import numpy
  from tqdm import tqdm
  from paddleseg.utils import get_sys_env, logger, get_image_list
  from infer import Predictor
label_desc: Use image node_id 1 for calling a global function with example usage: parse_args() and returns: parser