code: def test_fit_resample_half():
      sampling_strategy = {0: 3, 1: 6}
      cc = ClusterCentroids(
          sampling_strategy=sampling_strategy, random_state=RND_SEED
      )
      X_resampled, y_resampled = cc.fit_resample(X, Y)
      assert X_resampled.shape == (9, 2)
      assert y_resampled.shape == (9,)
  
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 3 for calling a global function with example usage: test_fit_resample_half() without return types