def filter_output(filter_callbacks, kwargs, obj, missing_ok=False):
    for callback_key, callback_value in filter_callbacks.items():
        if callback_key not in kwargs:
            continue
        if callback_key not in obj:
            if missing_ok:
                continue
            else:
                raise exception.InvalidResponse(
                    '%s is not in %s' % (callback_key, obj)
                )
        if not callback_value(
            kwargs[callback_key], obj[callback_key]
        ):
            return False
    return True
OpenID 2 does not use consumer-generated nonce
dataset/ETHPy150Open openstack/compass-core/compass/db/api/utils.py/filter_output--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/openid/test/test_consumer.py/CheckNonceVerifyTest.test_consumerNonceOpenID2