def is_any_role_configured(session):
    parsed_configs = get_configs(session)
    return True if (parsed_configs in 'instance_profile' or
                    'service_role' in parsed_configs) \
        else False
dataset/ETHPy150Open aws/aws-cli/awscli/customizations/emr/configutils.py/is_any_role_configured/swapped operands of `in`