def METHOD_NAME(self):
    # Repeat the experiments with lastPatchMode='repeat'. Now if there
    # are remaining frames they will be looped into a final patch.
    # The found shape will be equal or bigger than the expected one.
    # Found values will be trimmed to fit the expected shape.
    # No remaining frames.
    numberOfFrames = 43
    found, expected = self.identityOperation(patchSize=numberOfFrames,
                                             lastPatchMode='repeat')
    self.assertAlmostEqualMatrix(found, expected, 1e-8)
    # Some remaining frames.
    found, expected = self.identityOperation(frameSize=256, hopSize=128,
                                             lastPatchMode='repeat')
    self.assertAlmostEqualMatrix(found[:expected.shape[0], :], expected, 1e-8)
    # Increase the patch size.
    found, expected = self.identityOperation(frameSize=256, hopSize=128,
                                             patchSize=300, lastPatchMode='repeat')
    self.assertAlmostEqualMatrix(found[:expected.shape[0], :], expected, 1e-8)