code: def logout_user(f):
      
  
      @functools.wraps(f)
      def deco(*a, **kw):
          signals.user_logout(lambda: flask_login.current_user)
          flask_login.logout_user()
          return f(*a, **kw)
  
      return deco
docs: Decorator to logout user
      :param f:
      :return: