code: def resolve_enclosing_rbbox(
      rbboxes: List[np.ndarray], intermed_size: int = 1024
  ) -> np.ndarray:
      """Compute enclosing rotated bbox either from:
  
      Args:
      ----
          rbboxes: boxes in one of the following formats:
  
              - an array of boxes: (*, 5), where boxes have this shape:
              (xmin, ymin, xmax, ymax, score)
  
              - a list of BoundingBox
          intermed_size: size of the intermediate image
  
      Returns:
      -------
          a (1, 5) array (enclosing boxarray), or a BoundingBox
      """
      cloud: np.ndarray = np.concatenate(rbboxes, axis=0)
      # Convert to absolute for minAreaRect
      cloud *= intermed_size
      rect = cv2.minAreaRect(cloud.astype(np.int32))
      return cv2.boxPoints(rect) / intermed_size
  
file_path: doctr/doctr/utils/geometry.py
imports: from copy import deepcopy
  from math import ceil
  from typing import List, Optional, Tuple, Union
  import cv2
  import numpy
  from .common_types import BoundingBox, Polygon4P
label_desc: Use image node_id 4 for calling a global function with example usage: resolve_enclosing_rbbox(rbboxes, intermed_size) and returns: unknown