code: def get_rotated_width_height(box):
      """
      Returns the width and height of a rotated rectangle
  
      Args:
          box: A list of four points starting in the top left
          corner and moving clockwise.
      """
      w = (
          spatial.distance.cdist(
              box[0][np.newaxis], box[1][np.newaxis], "euclidean"
          )
          + spatial.distance.cdist(
              box[2][np.newaxis], box[3][np.newaxis], "euclidean"
          )
      ) / 2
      h = (
          spatial.distance.cdist(
              box[0][np.newaxis], box[3][np.newaxis], "euclidean"
          )
          + spatial.distance.cdist(
              box[1][np.newaxis], box[2][np.newaxis], "euclidean"
          )
      ) / 2
      return int(w[0][0]), int(h[0][0])
  
imports: import os
  import io
  import typing
  import hashlib
  import urllib.request
  import urllib.parse
  import cv2
  import imgaug
  import numpy
  import validators
  import typing_extensions
  import matplotlib.pyplot
  from shapely import geometry
  from scipy import spatial
label_desc: Use image node_id 2 for calling a global function with example usage: get_rotated_width_height(box) and returns: int,  int