

def test_constant_strategy_regressor():
    random_state = np.random.RandomState(seed=1)
    X = ([[0]] * 5)
    y = random_state.randn(5)
    reg = DummyRegressor(strategy='constant', constant=[43])
    reg.fit(X, y)
    assert_array_equal(reg.predict(X), ([43] * len(X)))
    reg = DummyRegressor(strategy='constant', constant=43)
    reg.fit(X, y)
    assert_array_equal(reg.predict(random_state), ([43] * len(X)))

dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/tests/test_dummy.py test_constant_strategy_regressor/VarMisuse@116/138 `X`->`random_state`