def deprecated(func=None, message=None):
    if isinstance(func, string_types):
        assert message is None
        message = func
        func = None

    if func is None:
        return functools.partial(deprecated, message=message)

    return _DeprecatedFunction(func, message)
Marks the specified function as deprecated, and emits a warning when
dataset/ETHPy150Open getlogbook/logbook/logbook/utils.py/deprecated