code: def test_valid_selection_mode(mode, create_pool_classifiers):
      X = np.random.rand(10, 2)
      y = np.ones(10)
      with pytest.raises(ValueError):
          des = BaseDES(create_pool_classifiers, mode=mode)
          des.fit(X, y)
  
file_path: DESlib/deslib/tests/des/test_base.py
imports: from unittest.mock import MagicMock
  import numpy
  import pytest
  from deslib.des.base import BaseDES
label_desc: Use image node_id 1 for calling a global function with example usage: test_valid_selection_mode(mode, create_pool_classifiers) without return types