code: def templateMemoryOrder(ccore_flag):
      net = syncpr(10, 0.1, 0.1, ccore_flag)
  
      patterns = []
      patterns += [[1, 1, 1, 1, 1, -1, -1, -1, -1, -1]]
      patterns += [[-1, -1, -1, -1, -1, 1, 1, 1, 1, 1]]
  
      net.train(patterns)
      assert net.memory_order(patterns[0]) < 0.8
      assert net.memory_order(patterns[1]) < 0.8
  
      for pattern in patterns:
          net.simulate(20, 10, pattern, solve_type.RK4)
          memory_order = net.memory_order(pattern)
          assert (memory_order > 0.95) and (memory_order <= 1.000005)
  
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 8 for calling the SyncprTestTemplates obj's underlying member method code with example usage: obj.templateMemoryOrder(ccore_flag) without return types