def METHOD_NAME(self, checkpoint_id):
    for checkpoint in self.output_checkpoints:
        if checkpoint.getName() == checkpoint_id:
            return checkpoint
    raise fake.libvirt_error(
        [libvirt.VIR_ERR_NO_DOMAIN_CHECKPOINT], "Checkpoint not found")