def cancel_experiment_v1(experiment_id: int) -> None:
    certs.cli_cert = certs.default_load(conf.make_master_url())
    authentication.cli_auth = authentication.Authentication(conf.make_master_url(), try_reauth=True)
    r = api.post(conf.make_master_url(), '/api/v1/experiments/{}/cancel'.format(experiment_id))
    r.raise_for_status()
    wait_for_experiment_state(experiment_id, 'CANCELED')
def cancel_experiment_v1(experiment_id: int) -> None:
    certs.cli_cert = certs.default_load(conf.make_master_url())
    authentication.cli_auth = authentication.Authentication(conf.make_master_url(), try_reauth=True)
    r = api.post(conf.make_master_url(), '/api/v1/experiments/{}/cancel'.format(experiment_id))
    r.raise_for_status()
    wait_for_experiment_state(experiment_id, 'CANCELED')