code: def test_notes_in_beats(self):
      # read a MIDI file
      midi = MIDIFile(pj(ANNOTATIONS_PATH, "piano_sample.mid"))
      midi.unit = "b"
      notes = np.loadtxt(
          pj(ANNOTATIONS_PATH, "piano_sample.notes_in_beats")
      )
      self.assertTrue(np.allclose(notes, midi.notes[:, :4]))
  
imports: from __future__ import absolute_import, division, print_function
  import os
  import tempfile
  import unittest
  from os.path import join
  from madmom.io.midi import *
  from .None import ANNOTATIONS_PATH
label_desc: Use image node_id 3 for calling the TestMIDIFileClass obj's underlying member method code with example usage: obj.test_notes_in_beats() without return types