code: def testRepeatMode(self):
      # The test audio file has 430 frames. If patchSize is set to 428 with
      # lastPatchMode='repeat' VectorRealToTensor will produce a second
      # patch of 428 frames by looping the last two spare samples.
      numberOfFrames = 428
      loopFrames = 430 - numberOfFrames
  
      found, expected = self.identityOperation(
          patchSize=numberOfFrames, lastPatchMode="repeat"
      )
  
      expected = numpy.vstack(
          [expected[:numberOfFrames]]
          + [  #  frames for the first patch
              expected[numberOfFrames : numberOfFrames + loopFrames]
          ]
          * (  # remaining frames for the second patch
              numberOfFrames // loopFrames
          )
      )  # number of repetitions to fill the second patch
  
      self.assertAlmostEqualMatrix(found, expected, 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 7 for calling the TestTensorToPool obj's underlying member method code with example usage: obj.testRepeatMode() without return types