code: def templateOutputDynamicCalculateOrderParameter(ccore_flag):
      net = sync_network(5, ccore=ccore_flag)
      output_dynamic = net.simulate_static(
          20, 10, solution=solve_type.FAST, collect_dynamic=True
      )
  
      assert len(output_dynamic.calculate_order_parameter(0, 20)) == 20
      assert len(output_dynamic.calculate_order_parameter()) == 1
      assert len(output_dynamic.calculate_order_parameter(5)) == 1
      assert len(output_dynamic.calculate_order_parameter(5, 10)) == 5
      assert output_dynamic.calculate_order_parameter(20)[0] > 0.9
  
file_path: pyclustering/pyclustering/nnet/tests/sync_templates.py
imports: import matplotlib
  from pyclustering.nnet import conn_type, solve_type, initial_type
  from pyclustering.nnet.sync import sync_network, sync_visualizer
label_desc: Use image node_id 6 for calling the SyncTestTemplates obj's underlying member method code with example usage: obj.templateOutputDynamicCalculateOrderParameter(ccore_flag) without return types