code: def test_asc_alt_half():
      tr = 2.0
      for func in (tf.st_03142, tf.asc_alt_half):
          assert_almost_equal(
              func(10, tr) / tr * 10, [0, 2, 4, 6, 8, 1, 3, 5, 7, 9]
          )
          assert_almost_equal(
              func(11, tr) / tr * 11, [0, 2, 4, 6, 8, 10, 1, 3, 5, 7, 9]
          )
          assert_array_equal(np.argsort(func(5, 1)), [0, 3, 1, 4, 2])
          assert tf.SLICETIME_FUNCTIONS[func.__name__] == func
  
file_path: nipy/nipy/algorithms/slicetiming/tests/test_timefuncs.py
imports: import numpy
  from numpy.testing import assert_almost_equal, assert_array_equal
  from ..None import timefuncs
label_desc: Use image node_id 7 for calling a global function with example usage: test_asc_alt_half() without return types