code: def test_all_knn_allow_minority():
      X, y = make_classification(
          n_samples=10000,
          n_features=2,
          n_informative=2,
          n_redundant=0,
          n_repeated=0,
          n_classes=3,
          n_clusters_per_class=1,
          weights=[0.2, 0.3, 0.5],
          class_sep=0.4,
          random_state=0,
      )
  
      allknn = AllKNN(allow_minority=True)
      X_res_1, y_res_1 = allknn.fit_resample(X, y)
      allknn = AllKNN()
      X_res_2, y_res_2 = allknn.fit_resample(X, y)
      assert len(y_res_1) < len(y_res_2)
  
file_path: imbalanced-learn/imblearn/under_sampling/_prototype_selection/tests/test_allknn.py
imports: import numpy
  import pytest
  from sklearn.datasets import make_classification
  from sklearn.neighbors import NearestNeighbors
  from sklearn.utils._testing import assert_allclose, assert_array_equal
  from imblearn.under_sampling import AllKNN
label_desc: Use image node_id 2 for calling a global function with example usage: test_all_knn_allow_minority() without return types