code: def test_select():
      clustering_test = DESClustering()
      clustering_test.clustering_ = KMeans()
      roc = [0]
      clustering_test.indices_ = np.array([[0, 2], [1, 4]])
      assert np.array_equal(clustering_test.select(roc), [[0, 2]])
      roc = [1]
      clustering_test.clustering_.predict = MagicMock(return_value=[1])
      assert np.array_equal(clustering_test.select(roc), [[1, 4]])
  
imports: from unittest.mock import MagicMock
  import numpy
  import pytest
  from sklearn.cluster import KMeans
  from sklearn.linear_model import Perceptron
  from sklearn.utils.estimator_checks import check_estimator
  from deslib.des.des_clustering import DESClustering
  from deslib.util.diversity import Q_statistic, ratio_errors, negative_double_fault
label_desc: Use image node_id 6 for calling a global function with example usage: test_select() without return types