def METHOD_NAME(namespace):
    if _has_role_or_scope(namespace) and not _has_role_and_scope(namespace):
        raise InvalidArgumentValueError("Parameter \"role\" and \"scope\" should be used together.")