code: def deprecated(msg):
      
      def decorator(func):
          @wraps(func)
          def wrapper(*args, **kwargs):
              logging.getLogger(__name__).warning(msg)
              return func(*args, **kwargs)
  
          return wrapper
  
      return decorator
docs: Marks a function / method as deprecated.
  
      Takes one argument, a message to be logged with information on future usage of the function or alternative methods
      to call.
  
      Args:
          msg (str): Deprecation message to be logged
  
      Returns:
          `callable`