code: def test_dict_deprecate_kwarg(key):
      with tm.assert_produces_warning(FutureWarning):
          assert _f2(old=key) == _f2_mappings[key]
  
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 6 for calling a global function with example usage: test_dict_deprecate_kwarg(key) without return types