code: def clip_box(xyxy, input_shape, im_shape, scale_factor):
      im_shape = im_shape.numpy()[0]
      ratio = scale_factor.numpy()[0][0]
      img0_shape = [int(im_shape[0] / ratio), int(im_shape[1] / ratio)]
  
      xyxy[:, 0::2] = paddle.clip(
          xyxy[:, 0::2], min=0, max=img0_shape[1]
      )
      xyxy[:, 1::2] = paddle.clip(
          xyxy[:, 1::2], min=0, max=img0_shape[0]
      )
      return xyxy
  
imports: import os
  import cv2
  import time
  import paddle
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: clip_box(xyxy, input_shape, im_shape, scale_factor) and returns: xyxy