code: def test_interp_raise_on_all_object_dtype(self):
      # GH 22985
      df = DataFrame({"A": [1, 2, 3], "B": [4, 5, 6]}, dtype="object")
      msg = (
          "Cannot interpolate with all object-dtype columns "
          "in the DataFrame. Try setting at least one "
          "column to a numeric dtype."
      )
      with pytest.raises(TypeError, match=msg):
          df.interpolate()
  
imports: import numpy
  import pytest
  from pandas._config import using_pyarrow_string_dtype
  from pandas.errors import ChainedAssignmentError
  import pandas.util._test_decorators
  from pandas import DataFrame, NaT, Series, date_range
  import pandas._testing
label_desc: Use image node_id 18 for calling the TestDataFrameInterpolate obj's underlying member method code with example usage: obj.test_interp_raise_on_all_object_dtype() without return types