code: def templateTestWinners(ccore_flag):
      types = [
          type_conn.func_neighbor,
          type_conn.grid_eight,
          type_conn.grid_four,
          type_conn.honeycomb,
      ]
      sample = read_sample(SIMPLE_SAMPLES.SAMPLE_SIMPLE3)
  
      for stucture in types:
          network = som(5, 5, stucture, ccore=ccore_flag)
          network.train(sample, 100)
  
          assert sum(network.awards) == 60
  
          points = list()
          for i in range(network.size):
              if network.awards[i] > 0:
                  points += network.capture_objects[i]
  
          assert len(points) == len(sample)
  
          points = sorted(points)
          for i in range(len(points)):
              assert points[i] == i
  
file_path: pyclustering/pyclustering/nnet/tests/som_templates.py
imports: import pickle
  import matplotlib
  from pyclustering.nnet.som import som, type_conn, som_parameters
  from pyclustering.utils import read_sample
  from pyclustering.samples.definitions import SIMPLE_SAMPLES
label_desc: Use image node_id 2 for calling the SomTestTemplates obj's underlying member method code with example usage: obj.templateTestWinners(ccore_flag) without return types