code: def _multipolygons_from_flatcoords(
      coords, offsets1, offsets2, offsets3
  ):
      # recreate polygons
      polygons = _polygon_from_flatcoords(coords, offsets1, offsets2)
  
      # recreate multipolygons
      multipolygon_parts = np.diff(offsets3)
      multipolygon_indices = np.repeat(
          np.arange(len(multipolygon_parts)), multipolygon_parts
      )
      result = np.empty(len(offsets3) - 1, dtype=object)
      result = creation.multipolygons(
          polygons, indices=multipolygon_indices, out=result
      )
      result[multipolygon_parts == 0] = creation.empty(
          1, geom_type=GeometryType.MULTIPOLYGON
      ).item()
  
      return result
  
file_path: shapely/shapely/_ragged_array.py
imports: import numpy
  from shapely import creation
  from shapely._geometry import GeometryType, get_coordinate_dimension, get_parts, get_rings, get_type_id
  from shapely.coordinates import get_coordinates
  from shapely.predicates import is_empty
label_desc: Use image node_id 14 for calling a global function with example usage: _multipolygons_from_flatcoords(coords, offsets1, offsets2, offsets3) and returns: result