def on_diverged(ref: str, checkpoint: bool):
    ref_info = ExpRefInfo.from_ref(ref)
    if checkpoint:
        raise CheckpointExistsError(ref_info.name)
    raise ExperimentExistsError(ref_info.name)
def on_diverged(ref: str, checkpoint: bool):
    ref_info = ExpRefInfo.from_ref(ref)
    if checkpoint:
        raise CheckpointExistsError(ref_info.name)
    raise ExperimentExistsError(ref_info.name)