human
Give me a the Python code you requested given the following:
Complete the below
def deprecated(func):

    ''''This is a decorator which can be used to mark functions
    as deprecated. It will result in a warning being emitted
    when the function is used.'
    '''
assistant
#Here is the Python code you requested.
    @functools.wraps(func)
    def new_func(*args, **kwargs):
        warnings.simplefilter('always', DeprecationWarning)
        warnings.warn('Call    to    deprecated    function    {}.'.format(func.__name__), category=DeprecationWarning, stacklevel=2)
        warnings.simplefilter('default', DeprecationWarning)
        return func(*args, **kwargs)
    return new_func