code: def _linestrings_from_multipoints(geoseries):
      """Converts a geoseries of multipoints into a geoseries of
      linestrings."""
      points = cudf.DataFrame(
          {
              "x": geoseries.multipoints.x.repeat(2).reset_index(
                  drop=True
              ),
              "y": geoseries.multipoints.y.repeat(2).reset_index(
                  drop=True
              ),
          }
      ).interleave_columns()
      result = cuspatial.GeoSeries.from_linestrings_xy(
          points,
          geoseries.multipoints.geometry_offset * 2,
          cp.arange(len(geoseries) + 1),
      )
      return result
  
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 7 for calling a global function with example usage: _linestrings_from_multipoints(geoseries) and returns: result