class_docstr: Creates ShapelyAnnotation (as shapely MultiPolygon).
  Can convert this instance annotation to various formats.
docstr: Approximates the present polygon to have a valid polygon shape.
  For more, check: https://shapely.readthedocs.io/en/stable/manual.html#object.buffer
docstr_tok: ["Approximates","the","present","polygon","to","have","a","valid","polygon","shape",".","For","more",",","check",":","https",":","\/\/shapely.readthedocs.io\/en\/stable\/manual.html","#","object.buffer"]
code: def get_buffered_shapely_annotation(
      self,
      distance=3,
      resolution=16,
      quadsegs=None,
      cap_style=CAP_STYLE.round,
      join_style=JOIN_STYLE.round,
      mitre_limit=5.0,
      single_sided=False,
  ):
      """
      Approximates the present polygon to have a valid polygon shape.
      For more, check: https://shapely.readthedocs.io/en/stable/manual.html#object.buffer
      """
      buffered_polygon = self.multipolygon.buffer(
          distance=distance,
          resolution=resolution,
          quadsegs=quadsegs,
          cap_style=cap_style,
          join_style=join_style,
          mitre_limit=mitre_limit,
          single_sided=single_sided,
      )
      shapely_annotation = ShapelyAnnotation(
          MultiPolygon([buffered_polygon])
      )
      return shapely_annotation
  
imports: from typing import List
  from shapely.geometry import CAP_STYLE, JOIN_STYLE, MultiPolygon, Polygon, box
label_desc: Use image node_id 16 for calling the ShapelyAnnotation obj's underlying member method code with example usage: obj.get_buffered_shapely_annotation(distance, resolution, quadsegs, cap_style, join_style, mitre_limit, single_sided) and returns: shapely_annotation