code: def test_interpolate_object_convert_copies(using_copy_on_write):
      df = DataFrame({"a": Series([1, 2], dtype=object), "b": 1})
      arr_a = get_array(df, "a")
      msg = "DataFrame.interpolate with method=pad is deprecated"
      with tm.assert_produces_warning(FutureWarning, match=msg):
          df.interpolate(method="pad", inplace=True)
  
      if using_copy_on_write:
          assert df._mgr._has_no_reference(0)
          assert not np.shares_memory(arr_a, get_array(df, "a"))
  
imports: import numpy
  import pytest
  from pandas import NA, ArrowDtype, DataFrame, Interval, NaT, Series, Timestamp, interval_range, option_context
  import pandas._testing
  from pandas.tests.copy_view.util import get_array
label_desc: Use image node_id 9 for calling a global function with example usage: test_interpolate_object_convert_copies(using_copy_on_write) without return types