code: def test_raise_error2():
      with pytest.raises(ValueError):
          mod = Thresholder(LinearRegression(), threshold=0.7)
          np.random.seed(42)
          X = np.random.normal(0, 1, (1000, 3))
          # we only support two classes
          y = np.random.choice(["a", "b", "c"], 1000)
          mod.fit(X, y)
  
file_path: scikit-lego/tests/test_meta/test_thresholder.py
imports: import numpy
  import pytest
  from sklearn.dummy import DummyClassifier
  from sklearn.ensemble import HistGradientBoostingClassifier, StackingClassifier
  from sklearn.linear_model import LinearRegression, LogisticRegression
  from sklego.common import flatten
  from sklego.meta import Thresholder
  from tests.conftest import classifier_checks, general_checks, select_tests
label_desc: Use image node_id 5 for calling a global function with example usage: test_raise_error2() without return types