code: def four_ensembles_80_oscillators():
      params = hhn_parameters()
      params.deltah = 650
      params.w1 = 0.1
      params.w2 = 9.0
      params.w3 = 5.0
      params.threshold = -10
  
      expected_ensembles = []
      stimulus = []
  
      base_stimulus = 10
      step_stimulus = 10
      amount_ensebles = 4
      region_size = 20
      for i in range(amount_ensebles):
          expected_ensembles += [
              [
                  i
                  for i in range(
                      region_size * i, region_size * i + region_size
                  )
              ]
          ]
          stimulus += [base_stimulus + step_stimulus * i] * region_size
  
      template_dynamic_hhn(
          len(stimulus),
          4000,
          1000,
          stimulus,
          params,
          separate=expected_ensembles,
          ccore_flag=True,
      )
  
file_path: pyclustering/pyclustering/nnet/examples/hhn_examples.py
imports: from pyclustering.nnet.dynamic_visualizer import dynamic_visualizer
  from pyclustering.nnet.hhn import hhn_network, hhn_parameters
label_desc: Use image node_id 12 for calling a global function with example usage: four_ensembles_80_oscillators() without return types