code: def bbox_to_polygon(bbox: BoundingBox) -> Polygon4P:
      """Convert a bounding box to a polygon
  
      Args:
      ----
          bbox: a bounding box
  
      Returns:
      -------
          a polygon
      """
      return (
          bbox[0],
          (bbox[1][0], bbox[0][1]),
          (bbox[0][0], bbox[1][1]),
          bbox[1],
      )
  
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 1 for calling a global function with example usage: bbox_to_polygon(bbox) and returns: bbox,  bbox,  bbox,  bbox,  bbox,  bbox