code: def _multipoints_is_degenerate(geoseries):
      """Only tests if the first two points are degenerate."""
      offsets = geoseries.multipoints.geometry_offset[:-1]
      sizes_mask = geoseries.sizes > 1
      x1 = geoseries.multipoints.x[offsets[sizes_mask]]
      x2 = geoseries.multipoints.x[offsets[sizes_mask] + 1]
      y1 = geoseries.multipoints.y[offsets[sizes_mask]]
      y2 = geoseries.multipoints.y[offsets[sizes_mask] + 1]
      result = _false_series(len(geoseries))
      is_degenerate = (
          x1.reset_index(drop=True) == x2.reset_index(drop=True)
      ) & (y1.reset_index(drop=True) == y2.reset_index(drop=True))
      result[sizes_mask] = is_degenerate.reset_index(drop=True)
      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 22 for calling a global function with example usage: _multipoints_is_degenerate(geoseries) and returns: result