def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def setup(self, **kwargs: Any) -> None:
        """Execute arbitrary pre-profiling set-up steps as defined by subclass."""