code: def deprecated(use_instead=None):
      
  
      def wrapped(func):
          @wraps(func)
          def new_func(*args, **kwargs):
              message = "Call to deprecated function %s." % func.__name__
              if use_instead:
                  message += " Use %s instead." % use_instead
              if not DISABLE_WARNINGS:
                  warn(message, stacklevel=3)
              return func(*args, **kwargs)
          return new_func
      return wrapped
docs: This is a decorator which can be used to mark functions
      as deprecated. It will result in a warning being emitted
      when the function is used.