class_docstr: Creates ShapelyAnnotation (as shapely MultiPolygon).
  Can convert this instance annotation to various formats.
docstr: [
      [(x1, y1), (x2, y2), (x3, y3), ...],
      [(x1, y1), (x2, y2), (x3, y3), ...],
      ...
  ]
docstr_tok: ["[","[","(","x1",",","y1",")",",","(","x2",",","y2",")",",","(","x3",",","y3",")",",","...","]",",","[","(","x1",",","y1",")",",","(","x2",",","y2",")",",","(","x3",",","y3",")",",","...","]",",","...","]"]
code: def to_list(self):
      """
      [
          [(x1, y1), (x2, y2), (x3, y3), ...],
          [(x1, y1), (x2, y2), (x3, y3), ...],
          ...
      ]
      """
      list_of_list_of_points: List = []
      for shapely_polygon in self.multipolygon.geoms:
          # create list_of_points for selected shapely_polygon
          if shapely_polygon.area != 0:
              x_coords = shapely_polygon.exterior.coords.xy[0]
              y_coords = shapely_polygon.exterior.coords.xy[1]
              # fix coord by slice_bbox
              if self.slice_bbox:
                  minx = self.slice_bbox[0]
                  miny = self.slice_bbox[1]
                  x_coords = [x_coord - minx for x_coord in x_coords]
                  y_coords = [y_coord - miny for y_coord in y_coords]
              list_of_points = list(zip(x_coords, y_coords))
          else:
              list_of_points = []
          # append list_of_points to list_of_list_of_points
          list_of_list_of_points.append(list_of_points)
      # return result
      return list_of_list_of_points
  
imports: from typing import List
  from shapely.geometry import CAP_STYLE, JOIN_STYLE, MultiPolygon, Polygon, box
label_desc: Use image node_id 7 for calling the ShapelyAnnotation obj's underlying member method code with example usage: obj.to_list() and returns: list_of_list_of_points