code: def testSyncEnsemblesPartialStimulationByCore(self):
      stimulus = (
          ([0] * 5) + ([1] * 5) + ([0] * 5) + ([1] * 5) + ([0] * 5)
      )
      expected_ensemble = [5, 6, 7, 8, 9, 15, 16, 17, 18, 19]
  
      PcnnTestTemplates.templateSyncEnsemblesAllocation(
          25,
          conn_type.ALL_TO_ALL,
          20,
          stimulus,
          True,
          [expected_ensemble],
      )
  
imports: import unittest
  from pyclustering.nnet.tests.pcnn_templates import PcnnTestTemplates
  from pyclustering.nnet import conn_type, conn_represent
  from pyclustering.core.tests import remove_library
label_desc: Use image node_id 10 for calling the PcnnIntegrationTest obj's underlying member method code with example usage: obj.testSyncEnsemblesPartialStimulationByCore() without return types