code: def template_clustering(
      path, amount_clusters, epouch=100, ccore=True
  ):
      sample = read_sample(path)
  
      somsc_instance = somsc(sample, amount_clusters, epouch, ccore)
      (ticks, _) = timedcall(somsc_instance.process)
  
      clusters = somsc_instance.get_clusters()
  
      print("Sample: ", path, "\t\tExecution time: ", ticks, "\n")
  
      visualizer = cluster_visualizer()
      visualizer.append_clusters(clusters, sample)
      visualizer.show()
  
file_path: pyclustering/pyclustering/cluster/examples/somsc_examples.py
imports: from pyclustering.samples.definitions import SIMPLE_SAMPLES, FCPS_SAMPLES
  from pyclustering.cluster import cluster_visualizer
  from pyclustering.cluster.somsc import somsc
  from pyclustering.utils import read_sample
  from pyclustering.utils import timedcall
label_desc: Use image node_id 1 for calling a global function with example usage: template_clustering(path, amount_clusters, epouch, ccore) without return types