code: def test_select_threshold():
      competences = np.random.rand(1, 100)
      expected = competences > 0.5
  
      probabilistic_test = BaseProbabilistic()
      probabilistic_test.selection_threshold = 0.5
      indices = probabilistic_test.select(competences)
      assert np.array_equal(indices, expected)
  
imports: import numpy
  import pytest
  from sklearn.linear_model import Perceptron
  from sklearn.utils.estimator_checks import check_estimator
  from deslib.des.probabilistic import BaseProbabilistic, Logarithmic, Exponential, RRC, DESKL, MinimumDifference
label_desc: Use image node_id 10 for calling a global function with example usage: test_select_threshold() without return types