code: def test_values(self):
      # empty sequences
      matches = calc_errors([], [])
      self.assertTrue(np.allclose(matches, []))
      # detections relative to annotations
      errors = calc_errors(DETECTIONS, ANNOTATIONS)
      correct = np.asarray([-0.01, -0.05, 0.01, -0.015, 0.1, 5.1])
      self.assertTrue(np.allclose(errors, correct))
      # same but with matches given
      errors = calc_errors(DETECTIONS, ANNOTATIONS, MATCHES)
      self.assertTrue(np.allclose(errors, correct))
      # annotations relative to detections
      errors = calc_errors(ANNOTATIONS, DETECTIONS)
      correct = np.asarray(
          [0.01, 0.05, -0.01, 0.015, 0.035, 0.485, -0.1]
      )
      self.assertTrue(np.allclose(errors, correct))
  
imports: from __future__ import absolute_import, division, print_function
  import math
  import unittest
  from collections import OrderedDict
  from madmom.evaluation import *
label_desc: Use image node_id 2 for calling the TestCalcErrorsFunction obj's underlying member method code with example usage: obj.test_values() without return types