code: def template_clustering(
      file,
      number_clusters,
      arg_order=0.999,
      arg_collect_dynamic=True,
      ccore_flag=False,
  ):
      sample = read_sample(file)
      network = hsyncnet(
          sample,
          number_clusters,
          initial_neighbors=int(len(sample) * 0.15),
          osc_initial_phases=initial_type.EQUIPARTITION,
          ccore=ccore_flag,
      )
  
      (ticks, analyser) = timedcall(
          network.process,
          arg_order,
          solve_type.FAST,
          arg_collect_dynamic,
      )
      print("Sample: ", file, "\t\tExecution time: ", ticks, "\n")
  
      clusters = analyser.allocate_clusters()
  
      if arg_collect_dynamic == True:
          sync_visualizer.show_output_dynamic(analyser)
  
      draw_clusters(sample, clusters)
  
file_path: pyclustering/pyclustering/cluster/examples/hsyncnet_examples.py
imports: from pyclustering.utils import read_sample, draw_clusters, timedcall
  from pyclustering.samples.definitions import SIMPLE_SAMPLES, FCPS_SAMPLES
  from pyclustering.cluster.hsyncnet import hsyncnet
  from pyclustering.nnet.sync import sync_visualizer
  from pyclustering.nnet import initial_type, solve_type
label_desc: Use image node_id 1 for calling a global function with example usage: template_clustering(file, number_clusters, arg_order, arg_collect_dynamic, ccore_flag) without return types