def experiment_has_completed_workload(experiment_id: int) -> bool:
    certs.cli_cert = certs.default_load(conf.make_master_url())
    authentication.cli_auth = authentication.Authentication(conf.make_master_url(), try_reauth=True)
    trials = experiment_trials(experiment_id)
    if (not any(trials)):
        return False
    return any((any(((s['state'] == 'COMPLETED') for s in t['steps'])) for t in trials))
def experiment_has_completed_workload(experiment_id: int) -> bool:
    certs.cli_cert = certs.default_load(conf.make_master_url())
    authentication.cli_auth = authentication.Authentication(conf.make_master_url(), try_reauth=True)
    trials = experiment_trials(experiment_id)
    if (not any(trials)):
        return False
    return any((any(((s['state'] == 'COMPLETED') for s in t['steps'])) for t in trials))