code: def testFramesToTensorAndBackToFramesDiscardAccumulate(self):
      # Repeat the tests in accumulate mode. Here the patches are stored
      # internally and pushed at once at the end of the stream.
      numberOfFrames = 43
      found, expected = self.identityOperation(
          patchSize=numberOfFrames,
          lastPatchMode="discard",
          accumulate=True,
      )
      self.assertAlmostEqualMatrix(found, expected, 1e-8)
  
      found, expected = self.identityOperation(
          frameSize=256,
          hopSize=128,
          lastPatchMode="discard",
          accumulate=True,
      )
      self.assertAlmostEqualMatrix(
          found, expected[: found.shape[0], :], 1e-8
      )
  
      found, expected = self.identityOperation(
          frameSize=256,
          hopSize=128,
          patchSize=300,
          lastPatchMode="discard",
          accumulate=True,
      )
      self.assertAlmostEqualMatrix(
          found, expected[: found.shape[0], :], 1e-8
      )
  
file_path: essentia/test/src/unittests/streaming/test_tensortopool.py
imports: from essentia_test import *
  from essentia.streaming import *
label_desc: Use image node_id 3 for calling the TestTensorToPool obj's underlying member method code with example usage: obj.testFramesToTensorAndBackToFramesDiscardAccumulate() without return types