Implement extra_trees_split(X, y, feature_indices, random_seed=None): choose a node split the Extra Trees way, with one random threshold per candidate feature.
X is (n_samples, n_features), y holds integer class labels, feature_indices lists the candidate feature indices in the order to try them.random_seed is not None, call np.random.seed(random_seed) first.f in order, with fmin and fmax the column's min and max: draw t = np.random.uniform(fmin, fmax), or use t = fmin without drawing when fmin == fmax. Left is X[:, f] <= t, right is the rest.Return [best_feature_index, best_threshold, best_score] without rounding.