code: def test_notes_in_ticks(self):
      # read a MIDI file
      midi = MIDIFile(pj(ANNOTATIONS_PATH, "piano_sample.mid"))
      midi.unit = "t"
      note_times = [
          0,
          240,
          480,
          720,
          960,
          1200,
          1440,
          1680,
          1920,
          2160,
          2400,
          2640,
          2880,
          3120,
          3360,
          3600,
          3840,
          3840,
          3840,
          4320,
          4800,
          4800,
          5280,
      ]
      self.assertTrue(np.allclose(note_times, midi.notes[:, 0]))
  
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 4 for calling the TestMIDIFileClass obj's underlying member method code with example usage: obj.test_notes_in_ticks() without return types