

def test_sparse_input():
    (X, y) = datasets.make_multilabel_classification(random_state=0, n_samples=50)
    for (name, sparse_matrix) in product(FOREST_ESTIMATORS, (csr_matrix, csc_matrix, coo_matrix)):
        (yield (check_sparse_input, name, X, sparse_matrix(X), y))

dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/ensemble/tests/test_forest.py test_sparse_input/original