code: def test_ascending():
      tr = 2.0
      for func in (tf.st_01234, tf.ascending):
          for n_slices in (10, 11):
              assert_almost_equal(
                  func(n_slices, tr),
                  np.arange(n_slices) / n_slices * tr,
              )
          assert_array_equal(np.argsort(func(5, 1)), [0, 1, 2, 3, 4])
          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 1 for calling a global function with example usage: test_ascending() without return types