code: def test_velocity(self):
      fps = 10
      quantized = quantize_notes(NOTES, fps=fps)
      self.assertTrue(quantized.shape == (42, 78))
      self.assertTrue(np.max(quantized) == 72)
      self.assertTrue(np.allclose(quantized[:, 72][0], 0))
      self.assertTrue(np.allclose(quantized[:, 72][1:36], 63))
      self.assertTrue(np.allclose(quantized[:, 72][36:], 0))
      # set velocity
      quantized = quantize_notes(NOTES, fps=fps, velocity=1.5)
      self.assertTrue(np.max(quantized) == 1.5)
      # default velocity if not given by the notes
      quantized = quantize_notes([[0.95, 0], [1.95, 1]], fps=10)
      self.assertTrue(np.allclose(quantized[np.nonzero(quantized)], 1))
      quantized = quantize_notes(
          [[0.95, 0], [1.95, 1]], fps=10, velocity=5
      )
      self.assertTrue(np.allclose(quantized[np.nonzero(quantized)], 5))
  
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 5 for calling the TestQuantizeNotesFunction obj's underlying member method code with example usage: obj.test_velocity() without return types