code: def test_index_to_frame_reset_index(self):
      def check(psdf, pdf):
          self.assert_eq(psdf.reset_index(), pdf.reset_index())
          self.assert_eq(
              psdf.reset_index(drop=True), pdf.reset_index(drop=True)
          )
  
          pdf.reset_index(drop=True, inplace=True)
          psdf.reset_index(drop=True, inplace=True)
          self.assert_eq(psdf, pdf)
  
      pdf, psdf = self.df_pair
      check(psdf.index.to_frame(), pdf.index.to_frame())
      check(
          psdf.index.to_frame(index=False),
          pdf.index.to_frame(index=False),
      )
  
      check(psdf.index.to_frame(name="a"), pdf.index.to_frame(name="a"))
      check(
          psdf.index.to_frame(index=False, name="a"),
          pdf.index.to_frame(index=False, name="a"),
      )
      check(
          psdf.index.to_frame(name=("x", "a")),
          pdf.index.to_frame(name=("x", "a")),
      )
      check(
          psdf.index.to_frame(index=False, name=("x", "a")),
          pdf.index.to_frame(index=False, name=("x", "a")),
      )
  
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 6 for calling the FrameResetIndexMixin obj's underlying member method code with example usage: obj.test_index_to_frame_reset_index() without return types