code: def test_reset_index_dti_round_trip(self):
      dti = date_range(
          start="1/1/2001", end="6/1/2001", freq="D"
      )._with_freq(None)
      d1 = DataFrame(
          {"v": np.random.default_rng(2).random(len(dti))}, index=dti
      )
      d2 = d1.reset_index()
      assert d2.dtypes.iloc[0] == np.dtype("M8[ns]")
      d3 = d2.set_index("index")
      tm.assert_frame_equal(d1, d3, check_names=False)
  
      # GH#2329
      stamp = datetime(2012, 11, 22)
      df = DataFrame([[stamp, 12.1]], columns=["Date", "Value"])
      df = df.set_index("Date")
  
      assert df.index[0] == stamp
      assert df.reset_index()["Date"].iloc[0] == stamp
  
file_path: pandas/pandas/tests/series/methods/test_reset_index.py
imports: from datetime import datetime
  import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Index, MultiIndex, RangeIndex, Series, date_range, option_context
  import pandas._testing
label_desc: Use image node_id 1 for calling the TestResetIndex obj's underlying member method code with example usage: obj.test_reset_index_dti_round_trip() without return types