code: def templateIncorrectPatternForSimulation(pattern, ccore_flag):
      net = syncpr(10, 0.1, 0.1, ccore=ccore_flag)
      try:
          net.simulate(10, 10, pattern)
      except:
          return
      assert False
  
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 4 for calling the SyncprTestTemplates obj's underlying member method code with example usage: obj.templateIncorrectPatternForSimulation(pattern, ccore_flag) without return types