code: def test_add_prefix_suffix_invalid_axis(string_series):
      with pytest.raises(
          ValueError, match="No axis named 1 for object type Series"
      ):
          string_series.add_prefix("foo#", axis=1)
  
      with pytest.raises(
          ValueError, match="No axis named 1 for object type Series"
      ):
          string_series.add_suffix("foo#", axis=1)
  
imports: import pytest
  from pandas import Index
  import pandas._testing
label_desc: Use image node_id 3 for calling a global function with example usage: test_add_prefix_suffix_invalid_axis(string_series) without return types