code: def templateClusterAllocationOneDimensionData(self, ccore_flag):
      input_data = (
          [[random()] for i in range(10)]
          + [[random() + 3] for i in range(10)]
          + [[random() + 5] for i in range(10)]
          + [[random() + 8] for i in range(10)]
      )
  
      somsc_instance = somsc(input_data, 4, 100, ccore_flag)
      somsc_instance.process()
      clusters = somsc_instance.get_clusters()
  
      self.assertEqual(len(clusters), 4)
      for cluster in clusters:
          self.assertEqual(len(cluster), 10)
  
file_path: pyclustering/pyclustering/cluster/tests/somsc_templates.py
imports: import numpy
  import unittest
  from pyclustering.cluster.somsc import somsc
  from pyclustering.utils import read_sample
  from random import random
label_desc: Use image node_id 2 for calling the SyncnetTestTemplates obj's underlying member method code with example usage: obj.templateClusterAllocationOneDimensionData(ccore_flag) without return types