code: def verify_consistency(self, expected_leaf_count) -> bool:
          
          if expected_leaf_count != self.leafCount:
              raise ConsistencyVerificationFailed()
          if self.get_expected_node_count(self.leafCount) != self.nodeCount:
              raise ConsistencyVerificationFailed()
          return True
docs: Check that the tree has same leaf count as expected and the
          number of nodes are also as expected