def decorated_dummy(dec, name):
 warnings.warn('The function `decorated_dummy` is deprecated since IPython 4.0', DeprecationWarning, stacklevel=2)
 dummy = (lambda : None)
 dummy.__name__ = name
 return dec(dummy)

def decorated_dummy ( dec , name ) : warnings . warn ( 'The function `decorated_dummy` is deprecated since IPython 4.0' , DeprecationWarning , stacklevel = 2 ) dummy = ( lambda : None ) dummy . __name__ = name return dec ( dummy )
return a dummy function decorated with dec .