code: def testObjectToLabelTwoDimension(self):
      representor = self.getIndexRepresentorTwoDimensionData()
      representor.set_encoding(
          type_encoding.CLUSTER_OBJECT_LIST_SEPARATION
      )
  
      representor.set_encoding(type_encoding.CLUSTER_INDEX_LABELING)
      assert 8 == len(representor.get_clusters())
      assert [0, 0, 0, 0, 1, 1, 1, 1] == 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 19 for calling the Test obj's underlying member method code with example usage: obj.testObjectToLabelTwoDimension() without return types