code: def test_cluster_map_str_and_repr():
      nb_clusters = 11
      cluster_map = ClusterMap()
      clusters = []
      for i in range(nb_clusters):
          new_cluster = Cluster(indices=range(i))
          cluster_map.add_cluster(new_cluster)
          clusters.append(new_cluster)
  
      expected_str = "[" + ", ".join(map(str, clusters)) + "]"
      assert_equal(str(cluster_map), expected_str)
      assert_equal(
          repr(cluster_map), "ClusterMap(" + expected_str + ")"
      )
  
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 16 for calling a global function with example usage: test_cluster_map_str_and_repr() without return types