code: def build_option(args):
      option = fd.RuntimeOption()
      if args.device.lower() == "gpu":
          option.use_gpu()
          option.use_paddle_infer_backend()
  
      if args.use_trt:
          option.use_trt_backend()
          # If use original Tensorrt, not Paddle-TensorRT,
          # comment the following two lines
          option.enable_paddle_to_trt()
          option.enable_paddle_trt_collect_shape()
          option.set_trt_input_shape("img", [1, 3, 512, 512])
  
      if args.device.lower() == "kunlunxin":
          option.use_kunlunxin()
      return option
  
imports: import fastdeploy
  import cv2
  import os
label_desc: Use image node_id 2 for calling a global function with example usage: build_option(args) and returns: option