code: def build_option(args):
      option = fd.RuntimeOption()
  
      if args.device.lower() == "gpu":
          option.use_gpu()
  
      if args.use_trt:
          option.use_paddle_infer_backend()
          # If use original Tensorrt, not Paddle-TensorRT,
          # please try `option.use_trt_backend()`
          option.paddle_infer_option.enable_trt = True
          option.paddle_infer_option.collect_trt_shape = True
          option.trt_option.set_shape(
              "image",
              [1, 3, 640, 640],
              [1, 3, 640, 640],
              [1, 3, 640, 640],
          )
          option.trt_option.set_shape(
              "scale_factor", [1, 2], [1, 2], [1, 2]
          )
      return option
  
imports: import cv2
  import os
  import fastdeploy
label_desc: Use image node_id 2 for calling a global function with example usage: build_option(args) and returns: option