code: def test_estimate_competence_kuncheva_ex(example_kuncheva):
      a_priori_test = APriori(k=example_kuncheva["k"])
      test_example = example_kuncheva
      a_priori_test.DSEL_processed_ = test_example["dsel_processed"]
      a_priori_test.dsel_scores_ = test_example["dsel_scores"]
      a_priori_test.DSEL_target_ = test_example["y_independent"]
      a_priori_test.n_classes_ = test_example["n_classes"]
  
      neighbors = test_example["neighbors"].reshape(1, -1)
      distances = test_example["distances"].reshape(1, -1)
  
      competences = a_priori_test.estimate_competence(
          neighbors, distances
      )
      assert np.isclose(competences, 0.70, atol=0.01)
  
file_path: DESlib/deslib/tests/dcs/test_a_priori.py
imports: import numpy
  import pytest
  from sklearn.linear_model import Perceptron
  from sklearn.utils.estimator_checks import check_estimator
  from deslib.dcs.a_priori import APriori
label_desc: Use image node_id 3 for calling a global function with example usage: test_estimate_competence_kuncheva_ex(example_kuncheva) without return types