human
Complete this python program:
def auth_disallow_anonymous_access(action):
assistant
#Here is the Python code you requested.

    """Flag an auth function as requiring a logged in user
    This means that check_access will automatically raise a NotAuthorized
    exception if an authenticated user is not provided in the context, without
    calling the actual auth function.
    """
    @functools.wraps(action)
    def wrapper(context, data_dict):
        return action(context, data_dict)
    wrapper.auth_allow_anonymous_access = False
    return wrapper