code: def test_enn_check_kind_selection():
      """Check that `check_sel="all"` is more conservative than
      `check_sel="mode"`."""
  
      X, y = make_classification(
          n_samples=1000,
          n_classes=2,
          weights=[0.3, 0.7],
          random_state=0,
      )
  
      enn_all = EditedNearestNeighbours(kind_sel="all")
      enn_mode = EditedNearestNeighbours(kind_sel="mode")
  
      enn_all.fit_resample(X, y)
      enn_mode.fit_resample(X, y)
  
      assert (
          enn_all.sample_indices_.size < enn_mode.sample_indices_.size
      )
  
file_path: imbalanced-learn/imblearn/under_sampling/_prototype_selection/tests/test_edited_nearest_neighbours.py
imports: import numpy
  from sklearn.datasets import make_classification
  from sklearn.neighbors import NearestNeighbors
  from sklearn.utils._testing import assert_array_equal
  from imblearn.under_sampling import EditedNearestNeighbours
label_desc: Use image node_id 5 for calling a global function with example usage: test_enn_check_kind_selection() without return types