code: def bbox_polygon(bbox):
      bx, by, bw, bh = bbox.xywh
      poly = np.array(
          [[bx, by], [bx, by + bh], [bx + bw, by + bh], [bx + bw, by]]
      )
      return patches.Polygon(poly)
  
file_path: icevision/icevision/visualize/utils.py
imports: from icevision.imports import *
  from icevision.utils import *
  from matplotlib import patches
  from PIL import Image, ImageFont, ImageDraw
  import PIL
label_desc: Use image node_id 2 for calling a global function with example usage: bbox_polygon(bbox) and returns: patches