code: def test_fit(example_static_selection):
      X, y, pool = example_static_selection
      static_selection_test = StaticSelection(pool, 0.5)
      static_selection_test.fit(X, y)
  
      assert static_selection_test.n_classifiers_ensemble_ == 50
      assert static_selection_test.n_classifiers_ensemble_ == len(
          static_selection_test.clf_indices_
      )
      assert np.array_equal(
          np.sort(static_selection_test.clf_indices_),
          list(range(50, 100)),
      )
  
imports: import numpy
  import pytest
  from sklearn.datasets import make_classification
  from sklearn.ensemble import AdaBoostClassifier
  from sklearn.exceptions import NotFittedError
  from sklearn.metrics import log_loss
  from sklearn.utils.estimator_checks import check_estimator
  from deslib.static.static_selection import StaticSelection
label_desc: Use image node_id 2 for calling a global function with example usage: test_fit(example_static_selection) without return types