code: def build_option(args):
      option = fd.RuntimeOption()
  
      if args.device.lower() == "gpu":
          option.use_gpu()
  
      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(
              "x",
              [1, 3, 256, 256],
              [1, 3, 1024, 1024],
              [1, 3, 2048, 2048],
          )
      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