code: def deprecated_alias(**aliases: str) -> Callable:
      """
      Function decorator to warn about deprecated kwargs (and replace them).
      """
  
      def deco(f):
          @functools.wraps(f)
          def wrapper(*args, **kwargs):
              _rename_kwargs(f.__name__, kwargs, aliases)
              return f(*args, **kwargs)
  
          return wrapper
  
      return deco
  
imports: import functools
  import warnings
  from typing import Dict, Any, Callable
label_desc: Use image node_id 1 for calling a global function with example usage: deprecated_alias() and returns: deco, wrapper, f