class_docstr: Creates ShapelyAnnotation (as shapely MultiPolygon).
  Can convert this instance annotation to various formats.
docstr: Init ShapelyAnnotation from coco bbox.
  
  bbox (List[int]): [xmin, ymin, width, height]
  slice_bbox (List[int]): [x_min, y_min, x_max, y_max] Is used
      to calculate sliced coco coordinates.
docstr_tok: ["Init","ShapelyAnnotation","from","coco","bbox",".","bbox","(","List","[","int","]",")",":","[","xmin",",","ymin",",","width",",","height","]","slice_bbox","(","List","[","int","]",")",":","[","x_min",",","y_min",",","x_max",",","y_max","]","Is","used","to","calculate","sliced","coco","coordinates","."]
code: def from_coco_bbox(
      cls, bbox: List[int], slice_bbox: List[int] = None
  ):
      """
      Init ShapelyAnnotation from coco bbox.
  
      bbox (List[int]): [xmin, ymin, width, height]
      slice_bbox (List[int]): [x_min, y_min, x_max, y_max] Is used
          to calculate sliced coco coordinates.
      """
      shapely_polygon = get_shapely_box(
          x=bbox[0], y=bbox[1], width=bbox[2], height=bbox[3]
      )
      shapely_multipolygon = MultiPolygon([shapely_polygon])
      return cls(
          multipolygon=shapely_multipolygon, slice_bbox=slice_bbox
      )
  
imports: from typing import List
  from shapely.geometry import CAP_STYLE, JOIN_STYLE, MultiPolygon, Polygon, box
label_desc: Use image node_id 2 for calling the ShapelyAnnotation obj's underlying member method code with example usage: obj.from_coco_bbox(cls, bbox, slice_bbox) and returns: cls