code: def bbox_cxcywh_to_xyxy(bbox: Tensor) -> Tensor:
      """Convert bbox coordinates from (cx, cy, w, h) to (x1, y1, x2, y2).
  
      Args:
          bbox (Tensor): Shape (n, 4) for bboxes.
  
      Returns:
          Tensor: Converted bboxes.
      """
      cx, cy, w, h = bbox.split((1, 1, 1, 1), dim=-1)
      bbox_new = [
          (cx - 0.5 * w),
          (cy - 0.5 * h),
          (cx + 0.5 * w),
          (cy + 0.5 * h),
      ]
      return torch.cat(bbox_new, dim=-1)
  
imports: from typing import List, Optional, Sequence, Tuple, Union
  import numpy
  import torch
  from torch import Tensor
  from mmdet.structures.bbox import BaseBoxes
label_desc: Use image node_id 11 for calling a global function with example usage: bbox_cxcywh_to_xyxy(bbox) and returns: torch