code: def testIdentityModel(self):
      # The test audio file has 430 frames.
      # Setting the patchSize to produce exactly 10 patches.
      numberOfFrames = 43
      found, expected = self.identityModel(
          patchSize=numberOfFrames, lastPatchMode="discard"
      )
      self.assertAlmostEqualMatrix(found, expected, 1e-8)
  
      # Now the number of frames does not match an exact number of patches.
      # The expected output is trimmed to the found shape as with
      # lastPatchMode='discard' the remaining frames not fitting into a
      # patch are discarded.
      found, expected = self.identityModel(
          frameSize=256, hopSize=128, lastPatchMode="discard"
      )
      self.assertAlmostEqualMatrix(
          found, expected[: found.shape[0], :], 1e-8
      )
  
      # Increase the patch size.
      found, expected = self.identityModel(
          frameSize=256,
          hopSize=128,
          patchSize=300,
          lastPatchMode="discard",
      )
      self.assertAlmostEqualMatrix(
          found, expected[: found.shape[0], :], 1e-8
      )
  
file_path: essentia/test/src/unittests/machinelearning/test_tensorflowpredict_streaming.py
imports: from essentia_test import *
  from essentia.streaming import *
  from essentia.standard import PoolAggregator
label_desc: Use image node_id 3 for calling the TestTensorflowPredict_Streaming obj's underlying member method code with example usage: obj.testIdentityModel() without return types