def experiment_has_active_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)
    r = api.get(conf.make_master_url(), 'tasks').json()
    for task in r.values():
        if (('Experiment {}'.format(experiment_id) in task['name']) and (len(task['containers']) > 0)):
            return True
    return False
def experiment_has_active_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)
    r = api.get(conf.make_master_url(), 'tasks').json()
    for task in r.values():
        if (('Experiment {}'.format(experiment_id) in task['name']) and (len(task['containers']) > 0)):
            return True
    return False