class_docstr: Test decoding features
class_docstr_tok: ["Test","decoding","features"]
code: def check_aubio(
      self,
      decoder,
      input_duration,
      output_duration,
      expected_totalframes,
  ):
      if self.mp3:
          self.assertAlmostEqual(
              input_duration, output_duration, delta=0.00001
          )
          self.assertAlmostEqual(
              input_duration, decoder.input_duration, delta=0.0001
          )
          self.assertAlmostEqual(
              self.source_duration, decoder.input_duration, delta=0.05
          )
          self.assertAlmostEqual(
              decoder.totalframes(), expected_totalframes, delta=1
          )
  
      else:
          self.assertEqual(input_duration, output_duration)
          self.assertEqual(input_duration, decoder.input_duration)
          self.assertEqual(self.source_duration, decoder.input_duration)
          self.assertEqual(decoder.totalframes(), expected_totalframes)
  
file_path: TimeSide/tests/test_decoding.py
imports: from __future__ import division
  import unittest
  from unit_timeside import TestRunner
  from timeside.plugins.decoder.aubio import AubioDecoder
  from timeside.core.tools.test_samples import samples
label_desc: Use image node_id 9 for calling the TestDecoding obj's underlying member method code with example usage: obj.check_aubio(decoder, input_duration, output_duration, expected_totalframes) without return types