code: def templateOutputDynamicLengthDynamicSimulation(
      collect_flag, ccore_flag
  ):
      net = syncpr(5, 0.1, 0.1, ccore_flag)
      output_dynamic = net.simulate_dynamic(
          [-1, 1, -1, 1, -1],
          solution=solve_type.FAST,
          collect_dynamic=collect_flag,
      )
  
      if collect_flag is True:
          assert len(output_dynamic) > 1
      else:
          assert len(output_dynamic) == 1
  
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 3 for calling the SyncprTestTemplates obj's underlying member method code with example usage: obj.templateOutputDynamicLengthDynamicSimulation(collect_flag, ccore_flag) without return types