code: def test_delegation_simple(monkeypatch, model):
      def mock_get_estimators(self):
          return [model]
  
      monkeypatch.setattr(
          SimpleClassifier, "_get_estimators", mock_get_estimators
      )
      sc = SimpleClassifier(random_state=0)
      sc.fit(X_blobs, y_blobs)
      assert isinstance(sc.est_[1], type(model))
      assert hasattr(sc, "decision_function") == hasattr(
          model, "decision_function"
      )
      assert hasattr(sc, "predict_proba") == hasattr(
          model, "predict_proba"
      )
      if hasattr(sc, "predict_proba"):
          assert sc.predict_proba(X_blobs).shape == (
              X_blobs.shape[0],
              2,
          )
      if hasattr(sc, "decision_function"):
          assert sc.decision_function(X_blobs).shape == (
              X_blobs.shape[0],
          )
  
imports: import pytest
  import pandas
  import numpy
  from sklearn.datasets import load_iris, make_blobs, load_digits, fetch_openml
  from sklearn.svm import LinearSVC
  from sklearn.linear_model import LogisticRegression
  from sklearn.dummy import DummyClassifier
  from dabl.datasets import load_titanic
  from dabl.models import SimpleClassifier, SimpleRegressor, AnyClassifier
label_desc: Use image node_id 8 for calling a global function with example usage: test_delegation_simple(monkeypatch, model) and returns: list