def user_is_authenticated(username):
    user = get_user(username)
    if user is not None:
        return user.is_authenticated()
    return False
Returns true if the user for a given username exists and is currently logged in.
dataset/ETHPy150Open DummyDivision/Tsune/terrain.py/user_is_authenticated