code: def get_box_wh(
      boxes: Union[Tensor, BaseBoxes]
  ) -> Tuple[Tensor, Tensor]:
      """Get the width and height of boxes with type of tensor or box type.
  
      Args:
          boxes (Tensor or :obj:`BaseBoxes`): boxes with type of tensor
              or box type.
  
      Returns:
          Tuple[Tensor, Tensor]: the width and height of boxes.
      """
      if isinstance(boxes, BaseBoxes):
          w = boxes.widths
          h = boxes.heights
      else:
          # Tensor boxes will be treated as horizontal boxes by defaults
          w = boxes[:, 2] - boxes[:, 0]
          h = boxes[:, 3] - boxes[:, 1]
      return w, h
  
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 19 for calling a global function with example usage: get_box_wh(boxes) and returns: w,  h