code: def templateLocalSyncOrder(ccore_flag):
      net = syncpr(10, 0.1, 0.1, ccore_flag)
  
      patterns = [[1, 1, 1, 1, 1, -1, -1, -1, -1, -1]]
      patterns += [[-1, -1, -1, -1, -1, 1, 1, 1, 1, 1]]
  
      local_sync_order = net.sync_local_order()
      assert (local_sync_order < 1.0) and (local_sync_order > 0.0)
  
      net.train(patterns)
  
      local_sync_order = net.sync_local_order()
      assert (local_sync_order < 1.0) and (local_sync_order > 0.0)
  
file_path: pyclustering/pyclustering/nnet/tests/syncpr_templates.py
imports: import matplotlib
  from pyclustering.nnet import solve_type
  from pyclustering.nnet.syncpr import syncpr, syncpr_visualizer
label_desc: Use image node_id 12 for calling the SyncprTestTemplates obj's underlying member method code with example usage: obj.templateLocalSyncOrder(ccore_flag) without return types