code: def test_selection_method_type(
      selection_method, create_pool_classifiers
  ):
      X = np.random.rand(10, 2)
      y = np.ones(10)
      with pytest.raises(TypeError):
          dcs = BaseDCS(
              create_pool_classifiers, selection_method=selection_method
          )
          dcs.fit(X, y)
  
imports: from unittest.mock import MagicMock
  import numpy
  import pytest
  from deslib.dcs.base import BaseDCS
label_desc: Use image node_id 2 for calling a global function with example usage: test_selection_method_type(selection_method, create_pool_classifiers) without return types