code: def templateClusterAllocationOneDimensionData(ccore_flag):
      input_data = (
          [[random()] for _ in range(10)]
          + [[random() + 3] for _ in range(10)]
          + [[random() + 5] for _ in range(10)]
          + [[random() + 8] for _ in range(10)]
      )
  
      cure_instance = cure(input_data, 4, ccore=ccore_flag)
      cure_instance.process()
      clusters = cure_instance.get_clusters()
  
      assertion.eq(4, len(clusters))
      for cluster in clusters:
          assertion.eq(10, len(cluster))
  
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 2 for calling the CureTestTemplates obj's underlying member method code with example usage: obj.templateClusterAllocationOneDimensionData(ccore_flag) without return types