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
This is a decorator which can be used to mark functions
dataset/ETHPy150Open sympy/sympy/sympy/core/decorators.py/deprecated