code: def bbox_center(boxes):
      """Get bbox centers from boxes.
      Args:
          boxes (Tensor): boxes with shape (..., 4), "xmin, ymin, xmax, ymax" format.
      Returns:
          Tensor: boxes centers with shape (..., 2), "cx, cy" format.
      """
      boxes_cx = (boxes[..., 0] + boxes[..., 2]) / 2
      boxes_cy = (boxes[..., 1] + boxes[..., 3]) / 2
      return paddle.stack([boxes_cx, boxes_cy], axis=-1)
  
imports: import math
  import paddle
  import numpy
label_desc: Use image node_id 19 for calling a global function with example usage: bbox_center(boxes) and returns: paddle