code: def test_select_batch_samples():
      n_samples = 10
      des_mi = DESMI(pct_accuracy=0.7)
      des_mi.N_ = 2
      competences = np.tile(np.array([0.7, 0.2, 1.0]), (n_samples, 1))
      selected_clf = des_mi.select(competences)
      expected = np.tile(np.array([0, 2]), (n_samples, 1))
      assert np.array_equal(
          np.unique(selected_clf), np.unique(expected)
      )
  
file_path: DESlib/deslib/tests/des/test_des_mi.py
imports: from unittest.mock import MagicMock
  import numpy
  import pytest
  from sklearn.linear_model import Perceptron
  from sklearn.utils.estimator_checks import check_estimator
  from deslib.des.des_mi import DESMI
label_desc: Use image node_id 7 for calling a global function with example usage: test_select_batch_samples() without return types