code: def test_transform_listlike_func_with_args():
      # GH 50624
      df = DataFrame({"x": [1, 2, 3]})
  
      def foo1(x, a=1, c=0):
          return x + a + c
  
      def foo2(x, b=2, c=0):
          return x + b + c
  
      msg = r"foo1\(\) got an unexpected keyword argument 'b'"
      with pytest.raises(TypeError, match=msg):
          df.transform([foo1, foo2], 0, 3, b=3, c=4)
  
      result = df.transform([foo1, foo2], 0, 3, c=4)
      expected = DataFrame(
          [[8, 8], [9, 9], [10, 10]],
          columns=MultiIndex.from_tuples(
              [("x", "foo1"), ("x", "foo2")]
          ),
      )
      tm.assert_frame_equal(result, expected)
  
file_path: pandas/pandas/tests/apply/test_frame_transform.py
imports: import numpy
  import pytest
  from pandas import DataFrame, MultiIndex, Series
  import pandas._testing
  from pandas.tests.apply.common import frame_transform_kernels
  from pandas.tests.frame.common import zip_frames
label_desc: Use image node_id 5 for calling a global function with example usage: test_transform_listlike_func_with_args() and returns: unknown, unknown