code: def templateOutputDynamicCalculateLocalOrderParameter(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_local_order_parameter(net, 0, 20)
          )
          == 20
      )
      assert (
          len(output_dynamic.calculate_local_order_parameter(net)) == 1
      )
      assert (
          len(output_dynamic.calculate_local_order_parameter(net, 5))
          == 1
      )
      assert (
          len(
              output_dynamic.calculate_local_order_parameter(net, 5, 10)
          )
          == 5
      )
      assert (
          output_dynamic.calculate_local_order_parameter(net, 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 7 for calling the SyncTestTemplates obj's underlying member method code with example usage: obj.templateOutputDynamicCalculateLocalOrderParameter(ccore_flag) without return types