code: def get_parts(geometry, return_index=False):
      """Gets parts of each GeometryCollection or Multi* geometry object; returns
      a copy of each geometry in the GeometryCollection or Multi* geometry object.
  
      Note: This does not return the individual parts of Multi* geometry objects in
      a GeometryCollection.  You may need to call this function multiple times to
      return individual parts of Multi* geometry objects in a GeometryCollection.
  
      Parameters
      ----------
      geometry : Geometry or array_like
      return_index : bool, default False
          If True, will return a tuple of ndarrays of (parts, indexes), where indexes
          are the indexes of the original geometries in the source array.
  
      Returns
      -------
      ndarray of parts or tuple of (parts, indexes)
  
      See also
      --------
      get_geometry, get_rings
  
      Examples
      --------
      >>> from shapely import MultiPoint
      >>> get_parts(MultiPoint([(0, 1), (2, 3)])).tolist()
      [<POINT (0 1)>, <POINT (2 3)>]
      >>> parts, index = get_parts([MultiPoint([(0, 1)]), MultiPoint([(4, 5), (6, 7)])], \
  return_index=True)
      >>> parts.tolist()
      [<POINT (0 1)>, <POINT (4 5)>, <POINT (6 7)>]
      >>> index.tolist()
      [0, 1, 1]
      """
      geometry = np.asarray(geometry, dtype=np.object_)
      geometry = np.atleast_1d(geometry)
  
      if geometry.ndim != 1:
          raise ValueError("Array should be one dimensional")
  
      if return_index:
          return _geometry_helpers.get_parts(geometry)
  
      return _geometry_helpers.get_parts(geometry)[0]
  
imports: import warnings
  from enum import IntEnum
  import numpy
  from shapely import _geometry_helpers, geos_version, lib
  from shapely._enum import ParamEnum
  from shapely.decorators import multithreading_enabled
label_desc: Use image node_id 16 for calling a global function with example usage: get_parts(geometry, return_index) and returns: _geometry_helpers, _geometry_helpers