code: def test_reset_index_with_default_index_types(self):
      pdf = pd.DataFrame(
          {"a": [1, 2, 3], "b": [4, 5, 6]}, index=np.random.rand(3)
      )
      psdf = ps.from_pandas(pdf)
  
      with ps.option_context("compute.default_index_type", "sequence"):
          self.assert_eq(psdf.reset_index(), pdf.reset_index())
  
      with ps.option_context(
          "compute.default_index_type", "distributed-sequence"
      ):
          self.assert_eq(psdf.reset_index(), pdf.reset_index())
  
      with ps.option_context(
          "compute.default_index_type", "distributed"
      ):
          # the index is different.
          self.assert_eq(
              psdf.reset_index()._to_pandas().reset_index(drop=True),
              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 4 for calling the FrameResetIndexMixin obj's underlying member method code with example usage: obj.test_reset_index_with_default_index_types() without return types