code: def test_same_threshold():
      mod1 = Thresholder(LogisticRegression(), threshold=0.5)
      mod2 = LogisticRegression()
      X = np.random.normal(0, 1, (100, 3))
      y = np.random.normal(0, 1, (100,)) < 0
      assert (
          mod1.fit(X, y).predict(X) == mod2.fit(X, y).predict(X)
      ).all()
  
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 2 for calling a global function with example usage: test_same_threshold() without return types