code: def _multilinestrings_from_flatcoords(coords, offsets1, offsets2):
      # recreate linestrings
      linestrings = _linestring_from_flatcoords(coords, offsets1)
  
      # recreate multilinestrings
      multilinestring_parts = np.diff(offsets2)
      multilinestring_indices = np.repeat(
          np.arange(len(multilinestring_parts)), multilinestring_parts
      )
  
      result = np.empty(len(offsets2) - 1, dtype=object)
      result = creation.multilinestrings(
          linestrings, indices=multilinestring_indices, out=result
      )
      result[multilinestring_parts == 0] = creation.empty(
          1, geom_type=GeometryType.MULTILINESTRING
      ).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 12 for calling a global function with example usage: _multilinestrings_from_flatcoords(coords, offsets1, offsets2) and returns: result