code: def test_values(self):
      result = segment_axis(np.arange(10), 4, 2)
      self.assertTrue(
          np.allclose(
              result,
              [[0, 1, 2, 3], [2, 3, 4, 5], [4, 5, 6, 7], [6, 7, 8, 9]],
          )
      )
      result = segment_axis(np.arange(10), 4, 3, end="pad")
      self.assertTrue(
          np.allclose(
              result, [[0, 1, 2, 3], [3, 4, 5, 6], [6, 7, 8, 9]]
          )
      )
      result = segment_axis(np.arange(11), 4, 3, end="pad")
      self.assertTrue(
          np.allclose(
              result,
              [[0, 1, 2, 3], [3, 4, 5, 6], [6, 7, 8, 9], [9, 10, 0, 0]],
          )
      )
      result = segment_axis(np.arange(11), 4, 3, end="pad", end_value=1)
      self.assertTrue(
          np.allclose(
              result,
              [[0, 1, 2, 3], [3, 4, 5, 6], [6, 7, 8, 9], [9, 10, 1, 1]],
          )
      )
      result = segment_axis(np.arange(11), 4, 3, end="wrap")
      self.assertTrue(
          np.allclose(
              result,
              [[0, 1, 2, 3], [3, 4, 5, 6], [6, 7, 8, 9], [9, 10, 0, 1]],
          )
      )
      result = segment_axis(np.arange(11), 4, 3, end="cut")
      self.assertTrue(
          np.allclose(
              result, [[0, 1, 2, 3], [3, 4, 5, 6], [6, 7, 8, 9]]
          )
      )
      result = segment_axis(np.arange(11), 4, 3, axis=0)
      self.assertTrue(
          np.allclose(
              result, [[0, 1, 2, 3], [3, 4, 5, 6], [6, 7, 8, 9]]
          )
      )
      result = segment_axis(np.arange(3), 4, 2, end="wrap")
      self.assertTrue(np.allclose(result, [[0, 1, 2, 0]]))
      result = segment_axis(np.arange(3), 4, 2, end="pad", end_value=9)
      self.assertTrue(np.allclose(result, [[0, 1, 2, 9]]))
  
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 3 for calling the TestSegmentAxisFunction obj's underlying member method code with example usage: obj.test_values() without return types