code: def test_errors(self):
      # test wrong axis
      with self.assertRaises(ValueError):
          segment_axis(np.arange(10), 4, 2, axis=1)
      # testing 0 frame_size
      with self.assertRaises(ValueError):
          segment_axis(np.arange(10), 0, 2)
      # testing 0 hop_size
      with self.assertRaises(ValueError):
          segment_axis(np.arange(10), 4, 0)
      with self.assertRaises(ValueError):
          # not enough data points for frame length
          segment_axis(np.arange(3), 4, 2)
  
imports: from __future__ import absolute_import, division, print_function
  import unittest
  from os.path import join
  from madmom.utils import *
  from .None import ACTIVATIONS_PATH, ANNOTATIONS_PATH, AUDIO_PATH, DATA_PATH, DETECTIONS_PATH
  from .test_evaluation_notes import ANNOTATIONS
label_desc: Use image node_id 2 for calling the TestSegmentAxisFunction obj's underlying member method code with example usage: obj.test_errors() without return types