code: def test_frienemy_safe_region(example_estimate_competence):
      X, y, _, _, dsel_processed, _ = example_estimate_competence
      neighbors = np.tile(np.array([0, 1, 2, 6, 7, 8, 14]), (10, 1))
  
      result = frienemy_pruning_preprocessed(
          neighbors, y, dsel_processed
      )
      assert result.all()
  
file_path: DESlib/deslib/tests/util/test_fire.py
imports: import numpy
  from deslib.util.dfp import frienemy_pruning
  from deslib.util.dfp import frienemy_pruning_preprocessed
  from ..conftest import create_base_classifier
label_desc: Use image node_id 4 for calling a global function with example usage: test_frienemy_safe_region(example_estimate_competence) without return types