code: def test_bad_deprecate_kwarg():
      msg = "mapping from old to new argument values must be dict or callable!"
  
      with pytest.raises(TypeError, match=msg):
  
          @deprecate_kwarg("old", "new", 0)
          def f4(new=None):
              return new
  
file_path: pandas/pandas/tests/util/test_deprecate_kwarg.py
imports: import pytest
  from pandas.util._decorators import deprecate_kwarg
  import pandas._testing
label_desc: Use image node_id 10 for calling a global function with example usage: test_bad_deprecate_kwarg() and returns: new