code: def test_transform_reducer_raises(
      all_reductions, frame_or_series, op_wrapper
  ):
      # GH 35964
      op = op_wrapper(all_reductions)
  
      obj = DataFrame({"A": [1, 2, 3]})
      obj = tm.get_obj(obj, frame_or_series)
  
      msg = "Function did not transform"
      with pytest.raises(ValueError, match=msg):
          obj.transform(op)
  
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 24 for calling a global function with example usage: test_transform_reducer_raises(all_reductions, frame_or_series, op_wrapper) without return types