code: def test_types(self):
      # test with 2 BeatStateSpaces as before
      # mpss = MultiPatternStateSpace([1, 2], [4, 6])
      bss1 = BeatStateSpace(1, 4)
      bss2 = BeatStateSpace(2, 6)
      mpss = MultiPatternStateSpace([bss1, bss2])
      self.assertIsInstance(mpss.state_spaces, list)
      self.assertIsInstance(mpss.state_positions, np.ndarray)
      self.assertIsInstance(mpss.state_intervals, np.ndarray)
      self.assertIsInstance(mpss.num_states, int)
      # self.assertIsInstance(mpss.num_intervals, int)
      self.assertIsInstance(mpss.num_patterns, int)
      # dtypes
      self.assertTrue(mpss.state_positions.dtype == float)
      self.assertTrue(mpss.state_intervals.dtype == int)
  
imports: from __future__ import absolute_import, division, print_function
  import unittest
  from madmom.features.beats_hmm import *
label_desc: Use image node_id 1 for calling the TestMultiPatternStateSpaceClass obj's underlying member method code with example usage: obj.test_types() without return types