code: def _multipoints_from_linestrings(geoseries):
      """Converts a geoseries of linestrings into a geoseries of
      multipoints. MultiLineStrings are converted into a single multipoint.
      """
      xy = geoseries.lines.xy
      mpoints = geoseries.lines.part_offset.take(
          geoseries.lines.geometry_offset
      )
      return cuspatial.GeoSeries.from_multipoints_xy(xy, mpoints)
  
imports: import cupy
  import numpy
  import cudf
  import cuspatial
  from cuspatial.core._column.geocolumn import ColumnType
  from cuspatial.core._column.geometa import Feature_Enum
label_desc: Use image node_id 11 for calling a global function with example usage: _multipoints_from_linestrings(geoseries) and returns: cuspatial