code: def test_IH_is_used(
      example_estimate_competence, create_pool_classifiers
  ):
      (
          X,
          y,
          neighbors,
          distances,
          dsel_processed,
          _,
      ) = example_estimate_competence
      expected = [0, 0, 1]
      query = np.ones((3, 2))
      ds_test = BaseDS(
          create_pool_classifiers, with_IH=True, IH_rate=0.5
      )
      ds_test.fit(X, y)
  
      ds_test.DSEL_processed_ = dsel_processed
  
      ds_test.get_competence_region = MagicMock(
          return_value=(distances, neighbors)
      )
      predicted = ds_test.predict(query)
  
      assert np.array_equal(predicted, expected)
  
imports: import unittest.mock
  from unittest.mock import Mock, MagicMock
  import numpy
  import pytest
  from sklearn.exceptions import NotFittedError
  from sklearn.neighbors import KNeighborsClassifier
  from deslib.base import BaseDS
  from deslib.util.dfp import frienemy_pruning_preprocessed
  from .conftest import create_base_classifier
label_desc: Use image node_id 20 for calling a global function with example usage: test_IH_is_used(example_estimate_competence, create_pool_classifiers) without return types