code: def test_length(self):
      fps = 100
      length = 280
      quantized = quantize_notes(NOTES, fps=fps, length=length)
      self.assertTrue(quantized.shape == (280, 78))
      idx = np.nonzero(quantized)
      correct = np.arange(np.round(NOTES[0, 0] * fps), length)
      self.assertTrue(np.allclose(idx[0][idx[1] == 72], correct))
  
imports: from __future__ import absolute_import, division, print_function
  import unittest
  from os.path import join
  from madmom.utils import *
  from .None import ACTIVATIONS_PATH, ANNOTATIONS_PATH, AUDIO_PATH, DATA_PATH, DETECTIONS_PATH
  from .test_evaluation_notes import ANNOTATIONS
label_desc: Use image node_id 2 for calling the TestQuantizeNotesFunction obj's underlying member method code with example usage: obj.test_length() without return types