code: func WritePod(cpm checkpointmanager.CheckpointManager, pod *v1.Pod) error {
  	var err error
  	if checkAnnotations(pod) {
  		data := NewPodCheckpoint(pod)
  		err = cpm.CreateCheckpoint(getPodKey(pod), data)
  	} else {
  		// This is to handle an edge where a pod update could remove
  		// an annotation and the checkpoint should then be removed.
  		err = cpm.RemoveCheckpoint(getPodKey(pod))
  	}
  	return err
  }
docs: // WritePod a checkpoint to a file on disk if annotation is present