code: def test_estimate_competence_batch(example_estimate_competence):
      (
          _,
          _,
          neighbors,
          distances,
          dsel_processed,
          _,
      ) = example_estimate_competence
  
      expected = np.array([[1, 5, 0], [1, 1, 2], [0, 0, 1]])
      rank_test = Rank()
      rank_test.DSEL_processed_ = dsel_processed
      competences = rank_test.estimate_competence(
          neighbors, distances=distances
      )
      assert np.allclose(competences, expected)
  
imports: import numpy
  from sklearn.linear_model import Perceptron
  from sklearn.utils.estimator_checks import check_estimator
  from deslib.dcs.rank import Rank
label_desc: Use image node_id 2 for calling a global function with example usage: test_estimate_competence_batch(example_estimate_competence) without return types