code: def test_types(self):
      result = segment_axis(np.arange(10), 4, 2)
      self.assertIsInstance(result, np.ndarray)
      self.assertTrue(result.dtype == int)
      result = segment_axis(np.arange(10, dtype=float), 4, 2)
      self.assertIsInstance(result, np.ndarray)
      self.assertTrue(result.dtype == float)
      # test with a Signal
      from madmom.audio.signal import Signal
  
      signal = Signal(pj(AUDIO_PATH, "sample.wav"))
      result = segment_axis(signal, 4, 2)
      self.assertIsInstance(result, np.ndarray)
      self.assertTrue(result.dtype == np.int16)
  
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 1 for calling the TestSegmentAxisFunction obj's underlying member method code with example usage: obj.test_types() without return types