def deprecated(comment=None):
    def deco(func):
        @functools.wraps(func)
        def new_func(*args, **kwargs):
            message = "Call to deprecated function {}.".format(func.__name__)
            if comment is not None:
                message += ' ' + comment
            warnings.warn(message, category=DeprecationWarning)
            return func(*args, **kwargs)
        return new_func
    return deco
This is a decorator which can be used to mark functions
dataset/ETHPy150Open SmartTeleMax/iktomi/iktomi/utils/deprecation.py/deprecated