code: def clip_boxes(boxes, image_shape):
      """Clip boxes to image boundaries.
  
      Args:
          boxes: A numpy array of bounding boxes.
          image_shape: Image shape (height, width).
      """
      max_width = image_shape[1] - 1
      max_height = image_shape[0] - 1
      min_width = 0
      min_height = 0
  
      boxes[:, 0] = clip_points(boxes[:, 0], max_width, min_width)
      boxes[:, 1] = clip_points(boxes[:, 1], max_height, min_height)
      boxes[:, 2] = clip_points(boxes[:, 2], max_width, min_width)
      boxes[:, 3] = clip_points(boxes[:, 3], max_height, min_height)
  
      return boxes
  
imports: import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: clip_boxes(boxes, image_shape) and returns: boxes