code: def _cxcywh_to_xyxy(
      cxcywh: torch.Tensor, inplace: bool
  ) -> torch.Tensor:
      if not inplace:
          cxcywh = cxcywh.clone()
  
      # Trick to do fast division by 2 and ceil, without casting. It produces the same result as
      # `torchvision.ops._box_convert._box_cxcywh_to_xyxy`.
      half_wh = (
          cxcywh[..., 2:]
          .div(
              -2,
              rounding_mode=None
              if cxcywh.is_floating_point()
              else "floor",
          )
          .abs_()
      )
      # (cx - width / 2) = x1, same for y1
      cxcywh[..., :2].sub_(half_wh)
      # (x1 + width) = x2, same for y2
      cxcywh[..., 2:].add_(cxcywh[..., :2])
  
      return cxcywh
  
imports: from typing import List, Optional, Tuple
  import PIL.Image
  import torch
  from torchvision import tv_tensors
  from torchvision.transforms import _functional_pil
  from torchvision.tv_tensors import BoundingBoxFormat
  from torchvision.utils import _log_api_usage_once
  from ._utils import _get_kernel, _register_kernel_internal, is_pure_tensor
label_desc: Use image node_id 17 for calling a global function with example usage: _cxcywh_to_xyxy(cxcywh, inplace) and returns: cxcywh