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