code: def test_replace_datetime64(self):
      # GH 5797
      ser = pd.Series(pd.date_range("20130101", periods=5))
      expected = ser.copy()
      expected.loc[2] = pd.Timestamp("20120101")
      result = ser.replace(
          {pd.Timestamp("20130103"): pd.Timestamp("20120101")}
      )
      tm.assert_series_equal(result, expected)
      result = ser.replace(
          pd.Timestamp("20130103"), pd.Timestamp("20120101")
      )
      tm.assert_series_equal(result, expected)
  
imports: import re
  import numpy
  import pytest
  from pandas._config import using_pyarrow_string_dtype
  import pandas
  import pandas._testing
  from pandas.core.arrays import IntervalArray
label_desc: Use image node_id 7 for calling the TestSeriesReplace obj's underlying member method code with example usage: obj.test_replace_datetime64() without return types