code: def _derived_func(name, func):
      def derived(n_slices, TR):
          return func(n_slices, TR)
  
      derived.__name__ = name
      derived.__doc__ = func._doc_template
      return _dec_stfunc(derived)
  
file_path: nipy/nipy/algorithms/slicetiming/timefuncs.py
imports: import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: _derived_func(name, func) and returns: _dec_stfunc, func