code: def test_process_forward(self):
      processor = DBNBeatTrackingProcessor(fps=100, online=True)
      # compute the forward path at once
      beats = processor.process_forward(sample_lstm_act)
      self.assertTrue(np.allclose(beats, [0.47, 0.79, 1.48, 2.16, 2.5]))
      # compute the forward path framewise
      processor.reset()
      beats = [
          processor.process_forward(np.atleast_1d(act), reset=False)
          for act in sample_lstm_act
      ]
      beats = np.array([b.size > 0 for b in beats])
      self.assertTrue(
          np.allclose(np.nonzero(beats)[0], [47, 79, 148, 216, 250])
      )
      # without resetting results are different
      beats = [
          processor.process_forward(np.atleast_1d(act), reset=False)
          for act in sample_lstm_act
      ]
      beats = np.array([b.size > 0 for b in beats])
      self.assertTrue(
          np.allclose(np.nonzero(beats)[0], [3, 79, 149, 216, 252])
      )
  
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 5 for calling the TestDBNBeatTrackingProcessorClass obj's underlying member method code with example usage: obj.test_process_forward() without return types