code: def test_fps(self):
      # 10 FPS
      fps = 10
      quantized = quantize_notes(NOTES, fps=fps)
      self.assertTrue(quantized.shape == (42, 78))
      idx = np.nonzero(quantized)
      correct = np.arange(
          np.round(NOTES[0, 0] * fps),
          np.round((NOTES[0, 0] + NOTES[0, 2]) * fps) + 1,
      )
      self.assertTrue(np.allclose(idx[0][idx[1] == 72], correct))
      # 100 FPS with numpy arrays (array must not be changed)
      fps = 100
      notes = np.array(NOTES)
      notes_ = np.copy(notes)
      quantized = quantize_notes(notes, fps=fps)
      self.assertTrue(quantized.shape == (416, 78))
      idx = np.nonzero(quantized)
      correct = np.arange(
          np.round(NOTES[1, 0] * fps),
          np.round((NOTES[1, 0] + NOTES[1, 2]) * fps) + 1,
      )
      self.assertTrue(np.allclose(idx[0][idx[1] == 41], correct))
      self.assertTrue(np.allclose(notes, notes_))
  
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 1 for calling the TestQuantizeNotesFunction obj's underlying member method code with example usage: obj.test_fps() without return types