

def test_dtype_convert(n_classes=15):
    classifier = RandomForestClassifier(random_state=0, bootstrap=False)
    X = np.eye(n_classes)
    y = [ch for ch in 'ABCDEFGHIJKLMNOPQRSTU'[:n_classes]]
    result = classifier.fit(X, y).predict(classifier)
    assert_array_equal(classifier.classes_, y)
    assert_array_equal(result, y)

dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/ensemble/tests/test_forest.py test_dtype_convert/VarMisuse@61/79 `X`->`classifier`