code: def template_animate_phase_matrix(
      num_osc,
      strength=1.0,
      steps=None,
      time=None,
      conn=conn_type.ALL_TO_ALL,
      type_solution=solve_type.FAST,
      ccore_flag=True,
  ):
      network = sync_network(
          num_osc, strength, type_conn=conn, ccore=ccore_flag
      )
  
      if (steps is not None) and (time is not None):
          sync_output_dynamic = network.simulate(
              steps, time, solution=type_solution, collect_dynamic=True
          )
      else:
          sync_output_dynamic = network.simulate_dynamic(
              collect_dynamic=True, order=0.999, solution=type_solution
          )
  
      sync_visualizer.animate_phase_matrix(sync_output_dynamic)
      return network
  
imports: from pyclustering.nnet import solve_type, conn_type
  from pyclustering.nnet.sync import sync_network, sync_visualizer
label_desc: Use image node_id 16 for calling a global function with example usage: template_animate_phase_matrix(num_osc, strength, steps, time, conn, type_solution, ccore_flag) and returns: network