def check_if_labels_same(self, node_id):
        return np.count_nonzero(self.counts[node_id]) == 1
Replace all occurences of string with a different string, return updated
dataset/ETHPy150Open balajiln/mondrianforest/src/mondrianforest.py/MondrianTree.check_if_labels_same--crossover with--dataset/ETHPy150Open clips/pattern/pattern/web/docx/docx.py/replace