code: def test_update_datetime_tz_in_place(
      self, using_copy_on_write, warn_copy_on_write
  ):
      # https://github.com/pandas-dev/pandas/issues/56227
      result = DataFrame([pd.Timestamp("2019", tz="UTC")])
      orig = result.copy()
      view = result[:]
      with tm.assert_produces_warning(
          FutureWarning if warn_copy_on_write else None,
          match="Setting a value",
      ):
          result.update(result + pd.Timedelta(days=1))
      expected = DataFrame([pd.Timestamp("2019-01-02", tz="UTC")])
      tm.assert_frame_equal(result, expected)
      if not using_copy_on_write:
          tm.assert_frame_equal(view, expected)
      else:
          tm.assert_frame_equal(view, orig)
  
file_path: pandas/pandas/tests/frame/methods/test_update.py
imports: import numpy
  import pytest
  import pandas
  from pandas import DataFrame, Series, date_range
  import pandas._testing
label_desc: Use image node_id 10 for calling the TestDataFrameUpdate obj's underlying member method code with example usage: obj.test_update_datetime_tz_in_place(using_copy_on_write, warn_copy_on_write) without return types