human
Write me a the Python program you requested given the following:
Complete the below
def deprecated(message):

    ''''A decorator used to mark functions as deprecated.  This will cause
    a warning to be printed the when the function is used.  Usage:
    >>> from nltk.internals import deprecated
    >>> @deprecated(\'Use foo() instead\')
    ... def bar(x):
    ...     print(x/10)'
    '''
assistant
#Here is the Python program you requested.
    def decorator(func):
        msg = ('Function    %s()    has    been    deprecated.        %s' % (func.__name__, message))
        msg = ('\n' + textwrap.fill(msg, initial_indent='        ', subsequent_indent='        '))
        def newFunc(*args, **kwargs):
            warnings.warn(msg, category=DeprecationWarning, stacklevel=2)
            return func(*args, **kwargs)
        newFunc.__dict__.update(func.__dict__)
        newFunc.__name__ = func.__name__
        newFunc.__doc__ = func.__doc__
        newFunc.__deprecated__ = True
        _add_epytext_field(newFunc, 'deprecated', message)
        return newFunc
    return decorator