code: def test_instance_hardness_region_all_same(
      example_estimate_competence,
  ):
      y = example_estimate_competence[1]
      k = 7
      neighbors = np.array([0, 1, 2, 6, 7, 8, 13])
      IH = hardness_region_competence(neighbors, y, k)
      assert IH == 0.0
  
imports: import numpy
  import pytest
  from deslib.util.instance_hardness import hardness_region_competence
  from deslib.util.instance_hardness import kdn_score
label_desc: Use image node_id 3 for calling a global function with example usage: test_instance_hardness_region_all_same(example_estimate_competence) without return types