class_docstr: A collection of one or more Polygons.
  
  If component polygons overlap the collection is invalid and some
  operations on it may fail.
  
  Parameters
  ----------
  polygons : sequence
      A sequence of Polygons, or a sequence of (shell, holes) tuples
      where shell is the sequence representation of a linear ring
      (see LinearRing) and holes is a sequence of such linear rings.
  
  Attributes
  ----------
  geoms : sequence
      A sequence of `Polygon` instances
  
  Examples
  --------
  Construct a MultiPolygon from a sequence of coordinate tuples
  
  >>> from shapely import Polygon
  >>> ob = MultiPolygon([
  ...     (
  ...     ((0.0, 0.0), (0.0, 1.0), (1.0, 1.0), (1.0, 0.0)),
  ...     [((0.1,0.1), (0.1,0.2), (0.2,0.2), (0.2,0.1))]
  ...     )
  ... ])
  >>> len(ob.geoms)
  1
  >>> type(ob.geoms[0]) == Polygon
  True
code: def __geo_interface__(self):
      allcoords = []
      for geom in self.geoms:
          coords = []
          coords.append(tuple(geom.exterior.coords))
          for hole in geom.interiors:
              coords.append(tuple(hole.coords))
          allcoords.append(tuple(coords))
      return {"type": "MultiPolygon", "coordinates": allcoords}
  
file_path: shapely/shapely/geometry/multipolygon.py
imports: import shapely
  from shapely.geometry import polygon
  from shapely.geometry.base import BaseMultipartGeometry
label_desc: Use image node_id 2 for calling the MultiPolygon obj's underlying member method code with example usage: obj.__geo_interface__() and returns: dict