def METHOD_NAME(self, event_data: NodeData) -> None:
    event_data["hashes"] = self.hashes
    if self.hierarchical_hashes:
        event_data["hierarchical_hashes"] = self.hierarchical_hashes
        safe_execute(_write_tree_labels, self.tree_labels, event_data, _with_transaction=False)