def save_annotation(self, annotation: Annotation, key: str): self._annotations[key] = annotation annotation.to_json(path=self._get_annotation_path(key))