code: def test_adjust_small_clusters(test_list, n_clusters):
      test_list = np.asarray(test_list)
  
      assert np.sum(test_list) == n_clusters
  
      list_round = _adjust_small_clusters(test_list, n_clusters)
  
      assert np.all(list_round != 0)
      assert np.sum(list_round) == n_clusters
      for a in list_round:
          assert isinstance(a, (int, np.integer))
  
file_path: nilearn/nilearn/regions/tests/test_hierarchical_kmeans_clustering.py
imports: import numpy
  import pytest
  from numpy.testing import assert_array_almost_equal
  from nilearn._utils.data_gen import generate_fake_fmri
  from nilearn.input_data import NiftiMasker
  from nilearn.regions.hierarchical_kmeans_clustering import HierarchicalKMeans, _adjust_small_clusters, hierarchical_k_means
label_desc: Use image node_id 1 for calling a global function with example usage: test_adjust_small_clusters(test_list, n_clusters) without return types