code: def test_droplevel(self):
      pser = pd.Series(
          [1, 2, 3],
          index=pd.MultiIndex.from_tuples(
              [("x", "a", "q"), ("x", "b", "w"), ("y", "c", "e")],
              names=["level_1", "level_2", "level_3"],
          ),
      )
      psser = ps.from_pandas(pser)
  
      self.assert_eq(pser.droplevel(0), psser.droplevel(0))
      self.assert_eq(
          pser.droplevel("level_1"), psser.droplevel("level_1")
      )
      self.assert_eq(pser.droplevel(-1), psser.droplevel(-1))
      self.assert_eq(pser.droplevel([0]), psser.droplevel([0]))
      self.assert_eq(
          pser.droplevel(["level_1"]), psser.droplevel(["level_1"])
      )
      self.assert_eq(pser.droplevel((0,)), psser.droplevel((0,)))
      self.assert_eq(
          pser.droplevel(("level_1",)), psser.droplevel(("level_1",))
      )
      self.assert_eq(pser.droplevel([0, 2]), psser.droplevel([0, 2]))
      self.assert_eq(
          pser.droplevel(["level_1", "level_3"]),
          psser.droplevel(["level_1", "level_3"]),
      )
      self.assert_eq(pser.droplevel((1, 2)), psser.droplevel((1, 2)))
      self.assert_eq(
          pser.droplevel(("level_2", "level_3")),
          psser.droplevel(("level_2", "level_3")),
      )
  
      with self.assertRaisesRegex(
          KeyError, "Level {0, 1, 2} not found"
      ):
          psser.droplevel({0, 1, 2})
      with self.assertRaisesRegex(
          KeyError, "Level level_100 not found"
      ):
          psser.droplevel(["level_1", "level_100"])
      with self.assertRaisesRegex(
          IndexError, "Too many levels: Index has only 3 levels, not 11"
      ):
          psser.droplevel(10)
      with self.assertRaisesRegex(
          IndexError,
          "Too many levels: Index has only 3 levels, -10 is not a valid level number",
      ):
          psser.droplevel(-10)
      with self.assertRaisesRegex(
          ValueError,
          "Cannot remove 3 levels from an index with 3 levels: "
          "at least one level must be left.",
      ):
          psser.droplevel([0, 1, 2])
      with self.assertRaisesRegex(
          ValueError,
          "Cannot remove 5 levels from an index with 3 levels: "
          "at least one level must be left.",
      ):
          psser.droplevel([1, 1, 1, 1, 1])
  
      # Tupled names
      pser.index.names = [("a", "1"), ("b", "2"), ("c", "3")]
      psser = ps.from_pandas(pser)
  
      self.assert_eq(
          pser.droplevel([("a", "1"), ("c", "3")]),
          psser.droplevel([("a", "1"), ("c", "3")]),
      )
  
imports: import unittest
  import numpy
  import pandas
  from pyspark import pandas
  from pyspark.testing.pandasutils import ComparisonTestBase
  from pyspark.testing.sqlutils import SQLTestUtils
label_desc: Use image node_id 13 for calling the SeriesIndexMixin obj's underlying member method code with example usage: obj.test_droplevel() without return types