code: def test_cluster_map_attributes_and_constructor():
      clusters = ClusterMap()
      assert_equal(len(clusters), 0)
      assert_array_equal(clusters.clusters, [])
      assert_array_equal(list(clusters), [])
      assert_raises(IndexError, clusters.__getitem__, 0)
      assert_raises(AttributeError, setattr, clusters, "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 10 for calling a global function with example usage: test_cluster_map_attributes_and_constructor() without return types