code: def test_illegal_label(self):
      with self.assertRaises(ValueError):
          key_label_to_class("Z major")
      with self.assertRaises(ValueError):
          key_label_to_class("D mixolydian")
      with self.assertRaises(ValueError):
          key_label_to_class("wrongannoation")
      with self.assertRaises(ValueError):
          key_label_to_class("C:maj")
  
imports: from __future__ import absolute_import, division, print_function
  import unittest
  from os.path import join
  from madmom.evaluation.key import *
  from .None import ANNOTATIONS_PATH, DETECTIONS_PATH
label_desc: Use image node_id 1 for calling the TestKeyLabelToClassFunction obj's underlying member method code with example usage: obj.test_illegal_label() without return types