def deprecated(func):
@wraps(func)<EOL>def decorator(*args, **kwargs):<EOL><INDENT>warnings.warn(<EOL>"<STR_LIT>".format(func.__name__),<EOL>category=DeprecationWarning, stacklevel=<NUM_LIT:2><EOL>)<EOL>return func(*args, **kwargs)<EOL><DEDENT>return decorator<EOL>
Decorator for warning user of depricated functions before use.