code: def test_select_random_batch():
      competences = np.array(
          [[0.5, 0.5, 0.5], [0.8, 0.9, 1.0], [0.0, 0.10, 0.0]]
      )
      expected = np.array([1, 2, 1])
      rng = np.random.RandomState(123456)
      dcs_test = BaseDCS(selection_method="random", random_state=rng)
  
      selected_clf = dcs_test.select(competences)
      assert np.array_equal(selected_clf, expected)
  
imports: from unittest.mock import MagicMock
  import numpy
  import pytest
  from deslib.dcs.base import BaseDCS
label_desc: Use image node_id 12 for calling a global function with example usage: test_select_random_batch() without return types