code: def logout_user():
      '''
      Logs a user out. (You do not need to pass the actual user.) This will
      also clean up the remember me cookie if it exists.
      '''
  
      user = _get_user()
  
      if 'user_id' in session:
          session.pop('user_id')
  
      if '_fresh' in session:
          session.pop('_fresh')
  
      if '_id' in session:
          session.pop('_id')
  
      cookie_name = current_app.config.get('REMEMBER_COOKIE_NAME', COOKIE_NAME)
      if cookie_name in request.cookies:
          session['remember'] = 'clear'
          if 'remember_seconds' in session:
              session.pop('remember_seconds')
  
      user_logged_out.send(current_app._get_current_object(), user=user)
  
      current_app.login_manager._update_request_context_with_user()
      return Truf logout_user():
      '''
      Logs a user out. (You do not need to pass the actual user.) This will
      also clean up the remember me cookie if it exists.
      '''
  
      user = _get_user()
  
      if 'user_id' in session:
          session.pop('user_id')
  
      if '_fresh' in session:
          session.pop('_fresh')
  
      if '_id' in session:
          session.pop('_id')
  
      cookie_name = current_app.config.get('REMEMBER_COOKIE_NAME', COOKIE_NAME)
      if cookie_name in request.cookies:
          session['remember'] = 'clear'
          if 'remember_seconds' in session:
              session.pop('remember_seconds')
  
      user_logged_out.send(current_app._get_current_object(), user=user)
  
      current_app.login_manager._update_request_context_with_user()
      return True
docs: Logs a user out. (You do not need to pass the actual user.) This will
      also clean up the remember me cookie if it exists.