code: def _get_arrays_linestring(arr, include_z):
      # the coords and offsets into the coordinates of the linestrings
      coords, indices = get_coordinates(
          arr, return_index=True, include_z=include_z
      )
      offsets = _indices_to_offsets(indices, len(arr))
  
      return coords, (offsets,)
  
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 4 for calling a global function with example usage: _get_arrays_linestring(arr, include_z) and returns: coords,  offsets