code: def test_estimate_competence_ones(example_estimate_competence):
      distances = example_estimate_competence[3]
      query = np.atleast_2d([1, 1])
      probabilistic_test = BaseProbabilistic()
      probabilistic_test.k_ = 7
  
      distances = distances[0, 0:3].reshape(1, -1)
      neighbors = np.array([[0, 2, 1]])
      probabilistic_test.C_src_ = np.ones((3, 3))
      competence = probabilistic_test.estimate_competence(
          neighbors, distances
      )
      assert (competence == 1.0).all()
  
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 16 for calling a global function with example usage: test_estimate_competence_ones(example_estimate_competence) without return types