code: def resize_boxes(
      boxes: NdarrayOrTensor,
      src_spatial_size: Sequence[int] | int,
      dst_spatial_size: Sequence[int] | int,
  ) -> NdarrayOrTensor:
      """
      Resize boxes when the corresponding image is resized
  
      Args:
          boxes: source bounding boxes, Nx4 or Nx6 torch tensor or ndarray. The box mode is assumed to be ``StandardMode``
          src_spatial_size: source image spatial size.
          dst_spatial_size: target image spatial size.
  
      Returns:
          resized boxes, with same data type as ``boxes``, does not share memory with ``boxes``
  
      Example:
          .. code-block:: python
  
              boxes = torch.ones(1,4)
              src_spatial_size = [100, 100]
              dst_spatial_size = [128, 256]
              resize_boxes(boxes, src_spatial_size, dst_spatial_size) #  will return tensor([[1.28, 2.56, 1.28, 2.56]])
      """
      spatial_dims: int = get_spatial_dims(boxes=boxes)
  
      src_spatial_size = ensure_tuple_rep(
          src_spatial_size, spatial_dims
      )
      dst_spatial_size = ensure_tuple_rep(
          dst_spatial_size, spatial_dims
      )
  
      zoom = [
          dst_spatial_size[axis] / float(src_spatial_size[axis])
          for axis in range(spatial_dims)
      ]
  
      return zoom_boxes(boxes=boxes, zoom=zoom)
  
imports: from __future__ import annotations
  from collections.abc import Sequence
  from copy import deepcopy
  import numpy
  import torch
  from monai.config.type_definitions import DtypeLike, NdarrayOrTensor, NdarrayTensor
  from monai.data.box_utils import COMPUTE_DTYPE, TO_REMOVE, get_spatial_dims
  from monai.transforms import Resize
  from monai.transforms.utils import create_scale
  from monai.utils import look_up_option
  from monai.utils.misc import ensure_tuple, ensure_tuple_rep
  from monai.utils.type_conversion import convert_data_type, convert_to_dst_type
label_desc: Use image node_id 4 for calling a global function with example usage: resize_boxes(boxes, src_spatial_size, dst_spatial_size) and returns: zoom_boxes