code: def test_read_from_mono(self, filename):
      total_frames = 0
      hop_size = 2048
      with source(filename, 0, hop_size) as input_source:
          assert_equal(input_source.hop_size, hop_size)
          # assert_equal(input_source.samplerate, samplerate)
          total_frames = 0
          for frames in input_source:
              total_frames += frames.shape[-1]
          # check we read as many samples as we expected
          assert_equal(total_frames, input_source.duration)
  
imports: from numpy.testing import TestCase, assert_equal
  from aubio import source
  from utils import list_all_sounds, parse_file_samplerate
  import unittest
  from _tools import assert_raises, assert_equal, assert_warns
  from _tools import parametrize, skipTest
label_desc: Use image node_id 1 for calling the Test_aubio_source_with obj's underlying member method code with example usage: obj.test_read_from_mono(filename) without return types