code: def test_intervals(self):
      # test some common interval annotations
      self.assert_intervals_equal(
          chord_intervals("maj"), interval_list("(1,3,5)")
      )
      self.assert_intervals_equal(
          chord_intervals("min"), interval_list("(1,b3,5)")
      )
      self.assert_intervals_equal(
          chord_intervals("maj7"), interval_list("(1,3,5,7)")
      )
  
      # test addition of intervals
      self.assert_intervals_equal(
          chord_intervals("maj(7)"), chord_intervals("maj7")
      )
      self.assert_intervals_equal(
          chord_intervals("dim(bb7)"), chord_intervals("dim7")
      )
  
      # test removal of intervals
      self.assert_intervals_equal(
          chord_intervals("maj9(*9)"), chord_intervals("maj7")
      )
      self.assert_intervals_equal(
          chord_intervals("min7(*b7)"), chord_intervals("min")
      )
  
      # test addition and removal of intervals
      self.assert_intervals_equal(
          chord_intervals("maj(*3,2)"), chord_intervals("sus2")
      )
      self.assert_intervals_equal(
          chord_intervals("min(*b3,3,7)"), chord_intervals("maj7")
      )
  
imports: from __future__ import absolute_import, division, print_function
  import unittest
  from os.path import join
  from madmom.evaluation.chords import *
  from .None import ANNOTATIONS_PATH, DETECTIONS_PATH
label_desc: Use image node_id 6 for calling the TestChordParsing obj's underlying member method code with example usage: obj.test_intervals() without return types