def check_if_labels_same(self, node_id):
        return np.count_nonzero(self.counts[node_id]) == 1
checks if all labels in a node are identical
dataset/ETHPy150Open balajiln/mondrianforest/src/mondrianforest.py/MondrianTree.check_if_labels_same