@bp.before_app_request<EOL>def load_logged_in_user():
user_id = session.get("<STR_LIT>")<EOL>g.user = User.query.get(user_id) if user_id is not None else None<EOL>
If a user id is stored in the session, load the user object from
    the database into ``g.user``.