code: def test_reset_index(level, drop, name, inplace):
      if not drop and inplace:
          pytest.skip(
              "For exception checks, see "
              "test_reset_index_dup_level_name_exceptions"
          )
  
      midx = pd.MultiIndex.from_tuples(
          [("a", 1), ("a", 2), ("b", 1), ("b", 2)]
      )
      gps = gpd.GeoSeries(
          [Point(0, 0), Point(0, 1), Point(2, 2), Point(3, 3)],
          index=midx,
      )
      gs = cuspatial.from_geopandas(gps)
      expected = gps.reset_index(level, drop, name, inplace)
      got = gs.reset_index(level, drop, name, inplace)
      if inplace:
          expected = gps
          got = gs
      if drop:
          pd.testing.assert_series_equal(expected, got.to_pandas())
      else:
          pd.testing.assert_frame_equal(expected, got.to_pandas())
  
imports: from enum import Enum
  from numbers import Integral
  import cupy
  import geopandas
  import numpy
  import pandas
  import pytest
  from geopandas.testing import assert_geoseries_equal
  from shapely.affinity import rotate
  from shapely.geometry import LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon
  import cudf
  from cudf.testing import assert_series_equal
  import cuspatial
label_desc: Use image node_id 34 for calling a global function with example usage: test_reset_index(level, drop, name, inplace) without return types