def METHOD_NAME(func_orig):
    @functools.wraps(func_orig)
    def _deprecate_kwargs_wrapper(*args, **kwargs):
        for key_old, key_new in kwargs_rename.items():
            if key_old not in kwargs:
                continue
            value = kwargs.pop(key_old)
            if key_new.isidentifier():
                # Rename argument
                kwargs[key_new] = value
            elif '{}' in key_new:
                # Nice warning message, but user's desired behavior fails
                key_new = key_new.format(value)
            _warn_proplot(
                f'Keyword {key_old!r} was deprecated in version {version} and may '
                f'be removed in {_next_release()}. Please use {key_new!r} instead.'
            )
        return func_orig(*args, **kwargs)
    return _deprecate_kwargs_wrapper