code: def load_logged_in_user():
      """If a user id is stored in the session, load the user object from
      the database into ``g.user``."""
      user_id = session.get("user_id")
  
      if user_id is None:
          g.user = None
      else:
          g.user = (
              get_db()
              .execute("SELECT * FROM user WHERE id = ?", (user_id,))
              .fetchone()
          )
  
file_path: flask/examples/tutorial/flaskr/auth.py
imports: import functools
  from flask import Blueprint
  from flask import flash
  from flask import g
  from flask import redirect
  from flask import render_template
  from flask import request
  from flask import session
  from flask import url_for
  from werkzeug.security import check_password_hash
  from werkzeug.security import generate_password_hash
  from .db import get_db
label_desc: Use image node_id 2 for calling a global function with example usage: load_logged_in_user() without return types