human
Complete the below
def deprecated(warning=None):

    ''''Decorator to raise warning each time the function is called.
    Args:
    warning: The warning message to be displayed as a string (optinoal).'
    '''

=====
Write me a the Python program you requested?
assistant
#Here is the Python program you requested.
    warning = (warning or '')
    def mark_deprecated(f):
        def deprecated_function(*args, **kwargs):
            warnings.warn(warning, DeprecationWarning, stacklevel=2)
            return f(*args, **kwargs)
        try:
            deprecated_function.func_name = f.func_name
        except TypeError:
            pass
        return deprecated_function
    return mark_deprecated