code: def test_multiclass_fit_resample():
      y = Y.copy()
      y[5] = 2
      y[6] = 2
      cc = ClusterCentroids(random_state=RND_SEED)
      _, y_resampled = cc.fit_resample(X, y)
      count_y_res = Counter(y_resampled)
      assert count_y_res[0] == 2
      assert count_y_res[1] == 2
      assert count_y_res[2] == 2
  
file_path: imbalanced-learn/imblearn/under_sampling/_prototype_generation/tests/test_cluster_centroids.py
imports: from collections import Counter
  import numpy
  import pytest
  from scipy import sparse
  from sklearn.cluster import KMeans
  from sklearn.datasets import make_classification
  from sklearn.linear_model import LogisticRegression
  from imblearn.under_sampling import ClusterCentroids
  from imblearn.utils.testing import _CustomClusterer
label_desc: Use image node_id 4 for calling a global function with example usage: test_multiclass_fit_resample() without return types