code: def corner_form_to_center_form(boxes: torch.Tensor) -> torch.Tensor:
      """
          This function converts boxes from corner to center form
      Args:
          boxes (Tensor): boxes in corner form (x, y, w, h)
  
      Returns:
          Boxes tensor in center form (c_x, c_y, w, h)
      """
  
      # c_x = ( x + w ) * 0.5, c_y = (y + h) * 0.5
      # delta_w = w - x, delta_h = h - y
      return torch.cat(
          (
              (boxes[..., :2] + boxes[..., 2:]) * 0.5,
              boxes[..., 2:] - boxes[..., :2],
          ),
          dim=-1,
      )
  
imports: import torch
  from torch import Tensor
label_desc: Use image node_id 4 for calling a global function with example usage: corner_form_to_center_form(boxes) and returns: torch