code: def testDynamicLengthGridRectangle25FourConnectionByCore(self):
      PcnnTestTemplates.templateGridRectangleDynamicLength(
          25, 20, conn_type.GRID_FOUR, None, 1, 25, [0] * 25, True
      )
      PcnnTestTemplates.templateGridRectangleDynamicLength(
          25, 20, conn_type.GRID_FOUR, None, 25, 1, [0] * 25, True
      )
  
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 6 for calling the PcnnIntegrationTest obj's underlying member method code with example usage: obj.testDynamicLengthGridRectangle25FourConnectionByCore() without return types