def check_state_result(running, recurse=False):
    if not isinstance(running, dict):
        return False

    if not running:
        return False

    ret = True
    for state_result in six.itervalues(running):
        if not recurse and not isinstance(state_result, dict):
            ret = False
        if ret and isinstance(state_result, dict):
            result = state_result.get('result', _empty)
            if result is False:
                ret = False
            # only override return value if we are not already failed
            elif result is _empty and isinstance(state_result, dict) and ret:
                ret = check_state_result(state_result, recurse=True)
        # return as soon as we got a failure
        if not ret:
            break
    return ret
Install and start Cassandra on 'vm'.
dataset/ETHPy150Open saltstack/salt/salt/utils/__init__.py/check_state_result--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/linux_benchmarks/cassandra_ycsb_benchmark.py/_InstallCassandra