code: def bbox_cxcyah_to_xyxy(bboxes: torch.Tensor) -> torch.Tensor:
      """Convert bbox coordinates from (cx, cy, ratio, h) to (x1, y1, x2, y2).
  
      Args:
          bbox (Tensor): Shape (n, 4) for bboxes.
      Returns:
          Tensor: Converted bboxes.
      """
      cx, cy, ratio, h = bboxes.split((1, 1, 1, 1), dim=-1)
      w = ratio * h
      x1y1x2y2 = [
          cx - w / 2.0,
          cy - h / 2.0,
          cx + w / 2.0,
          cy + h / 2.0,
      ]
      return torch.cat(x1y1x2y2, 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 23 for calling a global function with example usage: bbox_cxcyah_to_xyxy(bboxes) and returns: torch