code: def test_fit_resample_check_voting(X, expected_voting):
      cc = ClusterCentroids(random_state=RND_SEED)
      cc.fit_resample(X, Y)
      assert cc.voting_ == expected_voting
  
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 1 for calling a global function with example usage: test_fit_resample_check_voting(X, expected_voting) without return types