code: def deprecate_renamed_parameter(
      old_name: str, new_name: str, *, version: str
  ) -> Callable[[Callable[P, T]], Callable[P, T]]:
      """
      Decorator to mark a function argument as deprecated due to being renamed.
  
      Use as follows::
  
          @deprecate_renamed_parameter("old_name", "new_name", version="0.1.2")
          def myfunc(new_name):
              ...
  
      """
  
      def decorate(function: Callable[P, T]) -> Callable[P, T]:
          @wraps(function)
          def wrapper(*args: P.args, **kwargs: P.kwargs) -> T:
              _rename_keyword_argument(
                  old_name, new_name, kwargs, function.__name__, version
              )
              return function(*args, **kwargs)
  
          wrapper.__signature__ = inspect.signature(function)  # type: ignore[attr-defined]
          return wrapper
  
      return decorate
  
file_path: polars/py-polars/polars/utils/deprecation.py
imports: from __future__ import annotations
  import inspect
  import warnings
  from functools import wraps
  from typing import TYPE_CHECKING, Callable, TypeVar
  from polars.utils.various import find_stacklevel
label_desc: Use image node_id 4 for calling a global function with example usage: deprecate_renamed_parameter(old_name, new_name) and returns: decorate, wrapper, function