code: def _multipoint_from_flatcoords(coords, offsets):
      # recreate points
      points = creation.points(coords)
  
      # recreate multipoints
      multipoint_parts = np.diff(offsets)
      multipoint_indices = np.repeat(
          np.arange(len(multipoint_parts)), multipoint_parts
      )
  
      result = np.empty(len(offsets) - 1, dtype=object)
      result = creation.multipoints(
          points, indices=multipoint_indices, out=result
      )
      result[multipoint_parts == 0] = creation.empty(
          1, geom_type=GeometryType.MULTIPOINT
      ).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 10 for calling a global function with example usage: _multipoint_from_flatcoords(coords, offsets) and returns: result