code: def test_timedeltaindex(using_copy_on_write, cons):
      dt = timedelta_range("1 day", periods=3)
      ser = Series(dt)
      idx = cons(ser)
      expected = idx.copy(deep=True)
      ser.iloc[0] = Timedelta("5 days")
      if using_copy_on_write:
          tm.assert_index_equal(idx, expected)
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_timedeltaindex(using_copy_on_write, cons) without return types