code: def test_transform_axis_1_raises():
      # GH 35964
      msg = "No axis named 1 for object type Series"
      with pytest.raises(ValueError, match=msg):
          Series([1]).transform("sum", axis=1)
  
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 13 for calling a global function with example usage: test_transform_axis_1_raises() without return types