code: def template_segmentation_image(source, start_centers):
      data = read_image(source)
  
      kmeans_instance = kmeans(data, start_centers)
      kmeans_instance.process()
  
      clusters = kmeans_instance.get_clusters()
      draw_image_mask_segments(source, clusters)
  
file_path: pyclustering/pyclustering/cluster/examples/kmeans_segmentation.py
imports: from pyclustering.utils import draw_image_mask_segments, read_image
  from pyclustering.samples.definitions import IMAGE_SIMPLE_SAMPLES, IMAGE_MAP_SAMPLES
  from pyclustering.cluster.kmeans import kmeans
  from pyclustering.cluster.center_initializer import kmeans_plusplus_initializer
label_desc: Use image node_id 1 for calling a global function with example usage: template_segmentation_image(source, start_centers) without return types