code: def templateDynamicLength(
      num_osc, steps, type_conn, repr_type, stimulus, ccore, **kwargs
  ):
      params = kwargs.get("params", None)
  
      net = pcnn_network(
          num_osc, params, type_conn, repr_type, None, None, ccore
      )
      dynamic = net.simulate(steps, stimulus)
  
      assert steps == len(dynamic)
      assert num_osc == len(dynamic.output[0])
      assert steps == len(dynamic.allocate_time_signal())
  
      return net
  
file_path: pyclustering/pyclustering/nnet/tests/pcnn_templates.py
imports: from pyclustering.nnet.pcnn import pcnn_network, pcnn_parameters, pcnn_visualizer
  from pyclustering.nnet import conn_represent
label_desc: Use image node_id 1 for calling the PcnnTestTemplates obj's underlying member method code with example usage: obj.templateDynamicLength(num_osc, steps, type_conn, repr_type, stimulus, ccore) and returns: net