code: def test_apply_str_axis_1_raises(how, args):
      # GH 39211 - some ops don't support axis=1
      df = DataFrame({"a": [1, 2], "b": [3, 4]})
      msg = f"Operation {how} does not support axis=1"
      with pytest.raises(ValueError, match=msg):
          df.apply(how, axis=1, args=args)
  
imports: from itertools import chain
  import re
  import numpy
  import pytest
  from pandas.errors import SpecificationError
  from pandas import DataFrame, Series, date_range
  import pandas._testing
label_desc: Use image node_id 12 for calling a global function with example usage: test_apply_str_axis_1_raises(how, args) without return types