code: def templateDynamicSimulationConvergence(
      num_osc, weight, connection_type, ccore_flag
  ):
      network = sync_network(
          num_osc,
          weight,
          type_conn=connection_type,
          initial_phases=initial_type.EQUIPARTITION,
          ccore=ccore_flag,
      )
      output_dynamic = network.simulate_dynamic(collect_dynamic=False)
      # Just current state of network is required
  
      clusters = output_dynamic.allocate_sync_ensembles(0.1)
      assert len(clusters) == 1
  
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 5 for calling the SyncTestTemplates obj's underlying member method code with example usage: obj.templateDynamicSimulationConvergence(num_osc, weight, connection_type, ccore_flag) without return types