code: def warn(self, msg, *args, **kwargs):
      
      if six.PY3:
        warnings.warn("The 'warn' method is deprecated, use 'warning' instead",
                      DeprecationWarning, 2)
      self.log(logging.WARN, msg, *args, **kwargs)
docs: Logs 'msg % args' with severity 'WARN'.