code: def test_values(self):
      bss = BeatStateSpace(1, 4)
      self.assertTrue(np.allclose(bss.intervals, [1, 2, 3, 4]))
      self.assertTrue(
          np.allclose(
              bss.state_positions,
              [0, 0, 0.5, 0, 1.0 / 3, 2.0 / 3, 0, 0.25, 0.5, 0.75],
          )
      )
      self.assertTrue(
          np.allclose(
              bss.state_intervals, [1, 2, 2, 3, 3, 3, 4, 4, 4, 4]
          )
      )
      self.assertTrue(np.allclose(bss.first_states, [0, 1, 3, 6]))
      self.assertTrue(np.allclose(bss.last_states, [0, 2, 5, 9]))
      self.assertTrue(bss.num_states == 10)
      self.assertTrue(bss.num_intervals == 4)
      # other intervals
      bss = BeatStateSpace(2, 6)
      self.assertTrue(np.allclose(bss.intervals, [2, 3, 4, 5, 6]))
      self.assertTrue(
          np.allclose(
              bss.state_positions,
              [
                  0,
                  0.5,
                  0,
                  1.0 / 3,
                  2.0 / 3,
                  0,
                  0.25,
                  0.5,
                  0.75,
                  0,
                  0.2,
                  0.4,
                  0.6,
                  0.8,
                  0,
                  1.0 / 6,
                  2.0 / 6,
                  0.5,
                  4.0 / 6,
                  5.0 / 6,
              ],
          )
      )
      self.assertTrue(
          np.allclose(
              bss.state_intervals,
              [
                  2,
                  2,
                  3,
                  3,
                  3,
                  4,
                  4,
                  4,
                  4,
                  5,
                  5,
                  5,
                  5,
                  5,
                  6,
                  6,
                  6,
                  6,
                  6,
                  6,
              ],
          )
      )
      self.assertTrue(np.allclose(bss.first_states, [0, 2, 5, 9, 14]))
      self.assertTrue(np.allclose(bss.last_states, [1, 4, 8, 13, 19]))
      self.assertTrue(bss.num_states == 20)
      self.assertTrue(bss.num_intervals == 5)
  
imports: from __future__ import absolute_import, division, print_function
  import unittest
  from madmom.features.beats_hmm import *
label_desc: Use image node_id 2 for calling the TestBeatStateSpaceClass obj's underlying member method code with example usage: obj.test_values() without return types