code: def test_deprecate_keyword(key):
      x = 9
  
      if key == "old":
          klass = FutureWarning
          expected = (x, True)
      else:
          klass = None
          expected = (True, x)
  
      with tm.assert_produces_warning(klass):
          assert _f4(**{key: x}) == expected
  
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 12 for calling a global function with example usage: test_deprecate_keyword(key) without return types