code: def template_clustering(start_medians, path, tolerance=0.25):
      sample = read_sample(path)
  
      kmedians_instance = kmedians(sample, start_medians, tolerance)
      (ticks, result) = timedcall(kmedians_instance.process)
  
      clusters = kmedians_instance.get_clusters()
      print("Sample: ", path, "\t\tExecution time: ", ticks, "\n")
  
      draw_clusters(sample, clusters)
  
imports: from pyclustering.samples.definitions import SIMPLE_SAMPLES, FCPS_SAMPLES
  from pyclustering.cluster import cluster_visualizer
  from pyclustering.cluster.kmedians import kmedians
  from pyclustering.utils import draw_clusters
  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(start_medians, path, tolerance) without return types