code: def example_static_selection(create_X_y):
      X, y = create_X_y
      n_samples = y.size
      pool1 = [
          create_base_classifier(
              return_value=np.zeros(n_samples),
              return_prob=np.tile([0.49, 0.51], (n_samples, 1)),
          )
      ] * 50
  
      pool2 = [
          create_base_classifier(
              return_value=np.ones(X.shape[0]),
              return_prob=np.tile([0.52, 0.48], (n_samples, 1)),
          )
      ] * 50
      for clf in pool1:
          clf.score = MagicMock(return_value=0.5)
      for clf in pool2:
          clf.score = MagicMock(return_value=1.0)
  
      pool = pool1 + pool2
      return X, y, pool
  
file_path: DESlib/deslib/tests/conftest.py
imports: import pytest
  import numpy
  from unittest.mock import MagicMock
  from sklearn.tree import DecisionTreeClassifier
label_desc: Use image node_id 8 for calling a global function with example usage: example_static_selection(create_X_y) and returns: X,  y,  pool