code: def test_refit_always():
      lr = LogisticRegression()
      mod = Thresholder(lr, threshold=0.5, refit=True)
      np.random.seed(42)
      X = np.random.normal(0, 1, (100, 3))
      y = np.random.normal(0, 1, (100,)) < 0
      assert mod.fit(X, y).predict(X).shape == y.shape
  
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 6 for calling a global function with example usage: test_refit_always() without return types