code: def _xyxy_to_xywh(xyxy: torch.Tensor, inplace: bool) -> torch.Tensor:
      xywh = xyxy if inplace else xyxy.clone()
      xywh[..., 2:] -= xywh[..., :2]
      return xywh
  
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 16 for calling a global function with example usage: _xyxy_to_xywh(xyxy, inplace) and returns: xywh