

def _check_behavior_2d(clf):
    X = np.array([[0], [0], [0], [0]])
    y = np.array([1, 2, 1, 1])
    est = clone(clf)
    est.fit(X, y)
    y_pred = est.predict(X)
    assert_equal(y.shape, y_pred.shape)
    y = np.array([[1, 0], [2, 0], [1, 0], [1, 3]])
    est = clone(clf)
    est.fit(X, y)
    y_pred = est.predict(X)
    assert_equal(y.shape, y.shape)

dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/tests/test_dummy.py _check_behavior_2d/VarMisuse@152/165 `y_pred`->`y`