(**decorator_kwargs)
return deprecated_decorator
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.
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.
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 .
def deprecated(**decorator_kwargs):
    """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."""

    def deprecated_decorator(func):
        @wraps(func)
        def new_func(*args, **kwargs):
            from sympy.utilities.exceptions import SymPyDeprecationWarning
            decorator_kwargs.setdefault('feature', func.__name__)
            SymPyDeprecationWarning(**decorator_kwargs).warn(stacklevel=3)
            return func(*args, **kwargs)
        return new_func
    return deprecated_decorator
def deprecated ( * * decorator_kwargs ) : def deprecated_decorator ( func ) : @ wraps ( func ) def new_func ( * args , * * kwargs ) : from sympy . utilities . exceptions import SymPyDeprecationWarning decorator_kwargs . setdefault ( 'feature' , func . __name__ ) SymPyDeprecationWarning ( * * decorator_kwargs ) . warn ( stacklevel = 3 ) return func ( * args , * * kwargs ) return new_func return deprecated_decorator