def apply_wrapper(wrapper, func):
 warnings.warn('The function `apply_wrapper` is deprecated since IPython 4.0', DeprecationWarning, stacklevel=2)
 import nose.tools
 return decorator(wrapper, nose.tools.make_decorator(func)(wrapper))

def apply_wrapper ( wrapper , func ) : warnings . warn ( 'The function `apply_wrapper` is deprecated since IPython 4.0' , DeprecationWarning , stacklevel = 2 ) import nose . tools return decorator ( wrapper , nose . tools . make_decorator ( func ) ( wrapper ) )
apply a wrapper to a function for decoration .