class_docstr: A collection of one or more geometries that may contain more than one type
  of geometry.
  
  Parameters
  ----------
  geoms : list
      A list of shapely geometry instances, which may be of varying
      geometry types.
  
  Attributes
  ----------
  geoms : sequence
      A sequence of Shapely geometry instances
  
  Examples
  --------
  Create a GeometryCollection with a Point and a LineString
  
  >>> from shapely import LineString, Point
  >>> p = Point(51, -1)
  >>> l = LineString([(52, -1), (49, 2)])
  >>> gc = GeometryCollection([p, l])
class_docstr_tok: ["A","collection","of","one","or","more","geometries","that","may","contain","more","than","one","type","of","geometry",".","Parameters","--","--","--","--","--","geoms",":","list","A","list","of","shapely","geometry","instances",",","which","may","be","of","varying","geometry","types",".","Attributes","--","--","--","--","--","geoms",":","sequence","A","sequence","of","Shapely","geometry","instances","Examples","--","--","--","--","Create","a","GeometryCollection","with","a","Point","and","a","LineString",">",">",">","from","shapely","import","LineString",",","Point",">",">",">","p","=","Point","(","51",",","-1",")",">",">",">","l","=","LineString","(","[","(","52",",","-1",")",",","(","49",",","2",")","]",")",">",">",">","gc","=","GeometryCollection","(","[","p",",","l","]",")"]
code: def __new__(self, geoms=None):
      if not geoms:
          # TODO better empty constructor
          return shapely.from_wkt("GEOMETRYCOLLECTION EMPTY")
      if isinstance(geoms, BaseGeometry):
          # TODO(shapely-2.0) do we actually want to split Multi-part geometries?
          # this is needed for the split() tests
          if hasattr(geoms, "geoms"):
              geoms = geoms.geoms
          else:
              geoms = [geoms]
  
      return shapely.geometrycollections(geoms)
  
imports: import shapely
  from shapely.geometry.base import BaseGeometry, BaseMultipartGeometry
label_desc: Use image node_id 1 for calling the GeometryCollection obj's underlying member method code with example usage: obj.__new__(geoms) and returns: shapely, shapely