code: def test_sort(self):
      result = sort_tempo([[100, 0.8], [50, 0.2]])
      self.assertTrue(np.allclose(result, [[100, 0.8], [50, 0.2]]))
      result = sort_tempo([[50, 0.2], [100, 0.8]])
      self.assertTrue(np.allclose(result, [[100, 0.8], [50, 0.2]]))
      # tempo order of 50 and 100 bpm must be kept
      result = sort_tempo([[100, 0.2], [50, 0.2], [75, 0.6]])
      self.assertTrue(
          np.allclose(result, [[75, 0.6], [100, 0.2], [50, 0.2]])
      )
  
imports: from __future__ import absolute_import, division, print_function
  import math
  import unittest
  from madmom.evaluation.tempo import *
  from .None import ANNOTATIONS_PATH, DETECTIONS_PATH
label_desc: Use image node_id 1 for calling the TestSortTempoFunction obj's underlying member method code with example usage: obj.test_sort() without return types