def assert_performed_final_checkpoint(exp_id: int) -> None:
    trials = experiment_trials(exp_id)
    assert (len(trials) > 0)
    steps = trials[0]['steps']
    assert (len(steps) > 0)
    last_step = steps[(- 1)]
    assert (last_step['checkpoint'] is not None)
    assert (last_step['checkpoint']['state'] == 'COMPLETED')
def assert_performed_final_checkpoint(exp_id: int) -> None:
    trials = experiment_trials(exp_id)
    assert (len(trials) > 0)
    steps = trials[0]['steps']
    assert (len(steps) > 0)
    last_step = steps[(- 1)]
    assert (last_step['checkpoint'] is not None)
    assert (last_step['checkpoint']['state'] == 'COMPLETED')