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