code: def testSensorRegion(self):
      results1 = createAndRunNetwork(RecordSensor, "dataOut")
  
      results2 = createAndRunNetwork(
          RecordSensor, "dataOut", checkpointMidway=True
      )
  
      self.compareArrayResults(results1, results2)
  
file_path: nupic-legacy/tests/integration/nupic/engine/network_checkpoint_test.py
imports: import unittest
  import numpy
  from nupic.regions.record_sensor import RecordSensor
  from nupic.regions.sp_region import SPRegion
  from nupic.regions.tm_region import TMRegion
  from network_creation_common import createAndRunNetwork
label_desc: Use image node_id 1 for calling the NetworkCheckpointTest obj's underlying member method code with example usage: obj.testSensorRegion() without return types