code: def templateEncoderProcedures(ccore_flag):
      sample = read_sample(SIMPLE_SAMPLES.SAMPLE_SIMPLE3)
  
      cure_instance = cure(sample, 4, 5, 0.5, ccore=ccore_flag)
      cure_instance.process()
  
      clusters = cure_instance.get_clusters()
      encoding = cure_instance.get_cluster_encoding()
  
      encoder = cluster_encoder(encoding, clusters, sample)
      encoder.set_encoding(type_encoding.CLUSTER_INDEX_LABELING)
      encoder.set_encoding(type_encoding.CLUSTER_OBJECT_LIST_SEPARATION)
      encoder.set_encoding(type_encoding.CLUSTER_INDEX_LIST_SEPARATION)
  
      assertion.eq(4, len(clusters))
  
file_path: pyclustering/pyclustering/cluster/tests/cure_templates.py
imports: import numpy
  from pyclustering.samples.definitions import SIMPLE_SAMPLES
  from pyclustering.utils import read_sample
  from pyclustering.cluster.cure import cure
  from pyclustering.cluster.encoder import type_encoding, cluster_encoder
  from pyclustering.tests.assertion import assertion
  from random import random
label_desc: Use image node_id 3 for calling the CureTestTemplates obj's underlying member method code with example usage: obj.templateEncoderProcedures(ccore_flag) without return types