code: def test_process_lstm(self):
      # load uni-directional RNN models
      self.processor = RNNBeatProcessor(online=True, origin="online")
      # process the whole sequence at once
      result = self.processor(sample_file)
      self.assertTrue(np.allclose(result, sample_lstm_act, atol=1e-5))
      # result must be the same if processed a second time
      result_1 = self.processor(sample_file)
      self.assertTrue(np.allclose(result, result_1))
      # result must be the same if processed frame-by-frame
      frames = FramedSignal(sample_file, origin="online")
      self.processor = RNNBeatProcessor(
          online=True, num_frames=1, origin="future"
      )
      result_2 = np.hstack(
          [self.processor(f, reset=False) for f in frames]
      )
      self.assertTrue(np.allclose(result, result_2))
      # result must be different without resetting
      result_3 = np.hstack(
          [self.processor(f, reset=False) for f in frames]
      )
      self.assertFalse(np.allclose(result, result_3))
  
imports: from __future__ import absolute_import, division, print_function
  import unittest
  from os.path import join
  from madmom.ml.hmm import HiddenMarkovModel
  from madmom.audio.signal import FramedSignal
  from madmom.features import Activations
  from madmom.features.beats import *
  from madmom.features.beats_hmm import *
  from .None import AUDIO_PATH, ACTIVATIONS_PATH
label_desc: Use image node_id 3 for calling the TestRNNBeatProcessorClass obj's underlying member method code with example usage: obj.test_process_lstm() without return types