docstr: Test compatibility between C++ and Python TM implementation.
docstr_tok: ["Test","compatibility","between","C++","and","Python","TM","implementation","."]
code: def testTMPyCpp(self):
      """
      Test compatibility between C++ and Python TM implementation.
      """
      results1 = createAndRunNetwork(
          TMRegion,
          "bottomUpOut",
          checkpointMidway=False,
          temporalImp="tm_cpp",
      )
  
      results2 = createAndRunNetwork(
          TMRegion,
          "bottomUpOut",
          checkpointMidway=False,
          temporalImp="tm_py",
      )
  
      self.compareArrayResults(results1, results2)
  
file_path: nupic-legacy/tests/integration/nupic/engine/temporal_memory_compatibility_test.py
imports: import json
  import unittest
  import numpy
  from nupic.regions.tm_region import TMRegion
  from network_creation_common import createAndRunNetwork
label_desc: Use image node_id 1 for calling the TemporalMemoryCompatibilityTest obj's underlying member method code with example usage: obj.testTMPyCpp() without return types