code: def test_error(self):
      msg = "feather only support IO with DataFrames"
      for obj in [
          pd.Series([1, 2, 3]),
          1,
          "foo",
          pd.Timestamp("20130101"),
          np.array([1, 2, 3]),
      ]:
          self.check_error_on_write(obj, ValueError, msg)
  
imports: import numpy
  import pytest
  import pandas
  import pandas._testing
  from pandas.core.arrays import ArrowStringArray, StringArray
  from pandas.io.feather_format import read_feather, to_feather
label_desc: Use image node_id 4 for calling the TestFeather obj's underlying member method code with example usage: obj.test_error() without return types