code: def clip_bbox(boxes, im_shape):
      h, w = im_shape[0], im_shape[1]
      x1 = boxes[:, 0].clip(0, w)
      y1 = boxes[:, 1].clip(0, h)
      x2 = boxes[:, 2].clip(0, w)
      y2 = boxes[:, 3].clip(0, h)
      return paddle.stack([x1, y1, x2, y2], axis=1)
  
imports: import math
  import paddle
  import numpy
label_desc: Use image node_id 6 for calling a global function with example usage: clip_bbox(boxes, im_shape) and returns: paddle