code: def test_estimate_competence_batch(
      example_estimate_competence, create_pool_classifiers
  ):
      X, y, neighbors, distances, _, _ = example_estimate_competence
  
      expected = np.array(
          [[1.0, 0.0, 1.0], [2.0, 0.0, 2.0], [0.0, 3.0, 0.0]]
      )
  
      knora_e_test = KNORAE(create_pool_classifiers)
      knora_e_test.fit(X, y)
  
      competences = knora_e_test.estimate_competence(
          neighbors, distances=distances
      )
      assert np.allclose(competences, expected)
  
file_path: DESlib/deslib/tests/des/test_knorae.py
imports: import numpy
  import pytest
  from sklearn.linear_model import Perceptron
  from sklearn.utils.estimator_checks import check_estimator
  from deslib.des.knora_e import KNORAE
label_desc: Use image node_id 2 for calling a global function with example usage: test_estimate_competence_batch(example_estimate_competence, create_pool_classifiers) without return types