code: def template_dynamic_cnn(
      num_osc,
      steps,
      stimulus,
      neighbors,
      connection,
      show_network=False,
  ):
      network_instance = cnn_network(
          num_osc, connection, amount_neighbors=neighbors
      )
  
      output_dynamic = network_instance.simulate(steps, stimulus)
      print(output_dynamic.allocate_sync_ensembles(10))
  
      if show_network is True:
          network_instance.show_network()
  
      cnn_visualizer.show_output_dynamic(output_dynamic)
      cnn_visualizer.show_dynamic_matrix(output_dynamic)
      cnn_visualizer.show_observation_matrix(output_dynamic)
  
file_path: pyclustering/pyclustering/nnet/examples/cnn_examples.py
imports: from pyclustering.nnet.cnn import cnn_network, cnn_visualizer, type_conn
  from pyclustering.samples.definitions import SIMPLE_SAMPLES, FCPS_SAMPLES
  from pyclustering.utils import read_sample
label_desc: Use image node_id 1 for calling a global function with example usage: template_dynamic_cnn(num_osc, steps, stimulus, neighbors, connection, show_network) without return types