def METHOD_NAME(user_id):
    # TODO(@slamora) refactor when teal library has been drop.
    # `load_user` expects None if the user ID is invalid or the
    # session has expired so we need to handle Exception raised
    # by teal (it's overriding default behaviour of flask-sqlalchemy
    # which already returns None)
    try:
        return User.query.get(user_id)
    except ResourceNotFound:
        return None