code: def test_stacking_classifier():
      """
      Tests issue https://github.com/koaning/scikit-lego/issues/501
  
      No asserts are added as we only test for being exception free.
      When cloning the model in Thresholder an unfitted model is generated
      where no predict_proba exists
      """
      estimators = [
          ("dummy", DummyClassifier(strategy="constant", constant=0))
      ]
  
      X = np.random.normal(0, 1, (100, 3))
      y = np.random.normal(0, 1, (100,)) < 0
  
      clf = StackingClassifier(
          estimators=estimators,
          final_estimator=DummyClassifier(
              strategy="constant", constant=0
          ),
      )
  
      clf.fit(X, y)
  
      a = Thresholder(clf, threshold=0.2)
      a.fit(X, y)
      a.predict(X)
  
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 11 for calling a global function with example usage: test_stacking_classifier() without return types