Please use `_tree.TREE_UNDEFINED` instead of `-2`.

Or better, check `tree_.children_left[i] == _tree._TREE_LEAF` instead.