code: def check_error_on_write(self, df, exc, err_msg):
      # check that we are raising the exception
      # on writing
  
      with pytest.raises(exc, match=err_msg):
          with tm.ensure_clean() as path:
              to_feather(df, path)
  
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 1 for calling the TestFeather obj's underlying member method code with example usage: obj.check_error_on_write(df, exc, err_msg) without return types