def METHOD_NAME(namespace):
    if _has_role_and_scope(namespace) and _only_has_user_assigned(namespace):
        raise InvalidArgumentValueError("Invalid to use parameter \"role\" and \"scope\" with \"user-assigned\" parameter.")