code: def deprecated(message=DEPRECATION_MESSAGE, logger=None):
      
      if logger is None:
          logger = default_logger
      def _deprecated(f):
          def _wrapper(*args, **kwargs):
              f_name = f.__name__
              logger.warning(message.format(name=f_name))
              result = f(*args, **kwargs)
              return result
          return _wrapper
      return _deprecated
docs: This decorator will simply print warning before running decoratee.
      So, presumably, you want to use it with console-based commands.
  
      :return: Decorator for the function.