code: def test_cluster_map_get_small_and_large_clusters(rng):
      nb_clusters = 11
      cluster_map = ClusterMap()
  
      # Randomly generate small clusters
      indices = [
          rng.integers(0, 10, size=i) for i in range(1, nb_clusters + 1)
      ]
      small_clusters = [
          Cluster(indices=indices[i]) for i in range(nb_clusters)
      ]
      cluster_map.add_cluster(*small_clusters)
  
      # Randomly generate small clusters
      indices = [
          rng.integers(0, 10, size=i)
          for i in range(nb_clusters + 1, 2 * nb_clusters + 1)
      ]
      large_clusters = [
          Cluster(indices=indices[i]) for i in range(nb_clusters)
      ]
      cluster_map.add_cluster(*large_clusters)
  
      assert_equal(len(cluster_map), 2 * nb_clusters)
      assert_equal(
          len(cluster_map.get_small_clusters(nb_clusters)),
          len(small_clusters),
      )
      assert_arrays_equal(
          cluster_map.get_small_clusters(nb_clusters), small_clusters
      )
      assert_equal(
          len(cluster_map.get_large_clusters(nb_clusters + 1)),
          len(large_clusters),
      )
      assert_arrays_equal(
          cluster_map.get_large_clusters(nb_clusters + 1),
          large_clusters,
      )
  
imports: import copy
  import itertools
  import numpy
  from numpy.testing import assert_array_equal, assert_raises, assert_equal
  from dipy.segment.clustering import Cluster, ClusterCentroid
  from dipy.segment.clustering import ClusterMap, ClusterMapCentroid
  from dipy.segment.clustering import Clustering
  from dipy.testing import assert_true, assert_false, assert_arrays_equal
  from dipy.testing.decorators import set_random_number_generator
label_desc: Use image node_id 19 for calling a global function with example usage: test_cluster_map_get_small_and_large_clusters(rng) without return types