code: def testLabelToIndex(self):
      representor = self.getIndexRepresentor()
      representor.set_encoding(type_encoding.CLUSTER_INDEX_LABELING)
  
      representor.set_encoding(
          type_encoding.CLUSTER_INDEX_LIST_SEPARATION
      )
      assert 2 == len(representor.get_clusters())
      assert [[0, 1, 2, 3], [4, 5, 6, 7]] == representor.get_clusters()
  
imports: import unittest
  import math
  import matplotlib
  from pyclustering.cluster.encoder import cluster_encoder
  from pyclustering.cluster.encoder import type_encoding
label_desc: Use image node_id 6 for calling the Test obj's underlying member method code with example usage: obj.testLabelToIndex() without return types