code: def test_reset_index(self):
      pdf = pd.DataFrame(
          {"a": [1, 2, 3], "b": [4, 5, 6]}, index=np.random.rand(3)
      )
      psdf = ps.from_pandas(pdf)
  
      self.assert_eq(psdf.reset_index(), pdf.reset_index())
      self.assert_eq(psdf.reset_index().index, pdf.reset_index().index)
      self.assert_eq(
          psdf.reset_index(drop=True), pdf.reset_index(drop=True)
      )
  
      pdf.index.name = "a"
      psdf.index.name = "a"
  
      with self.assertRaisesRegex(
          ValueError, "cannot insert a, already exists"
      ):
          psdf.reset_index()
  
      self.assert_eq(
          psdf.reset_index(drop=True), pdf.reset_index(drop=True)
      )
  
      # inplace
      pser = pdf.a
      psser = psdf.a
      pdf.reset_index(drop=True, inplace=True)
      psdf.reset_index(drop=True, inplace=True)
      self.assert_eq(psdf, pdf)
      self.assert_eq(psser, pser)
  
      pdf.columns = ["index", "b"]
      psdf.columns = ["index", "b"]
      self.assert_eq(psdf.reset_index(), pdf.reset_index())
  
file_path: spark/python/pyspark/pandas/tests/indexes/test_reset_index.py
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 3 for calling the FrameResetIndexMixin obj's underlying member method code with example usage: obj.test_reset_index() without return types