code: def get_bbox_from_shapely(shapely_object):
      """
      Accepts shapely box/poly object and returns its bounding box in coco and voc formats
      """
      minx, miny, maxx, maxy = shapely_object.bounds
      width = maxx - minx
      height = maxy - miny
      coco_bbox = [minx, miny, width, height]
      voc_bbox = [minx, miny, maxx, maxy]
  
      return coco_bbox, voc_bbox
  
imports: from typing import List
  from shapely.geometry import CAP_STYLE, JOIN_STYLE, MultiPolygon, Polygon, box
label_desc: Use image node_id 3 for calling a global function with example usage: get_bbox_from_shapely(shapely_object) and returns: coco_bbox,  voc_bbox