def METHOD_NAME(*args, **kwargs):
    warnings.simplefilter("always", DeprecationWarning)  # turn off filter
    warnings.warn_explicit(
        "Call to deprecated function {}.".format(func.__name__),
        category=DeprecationWarning,
        filename=func.__code__.co_filename,
        lineno=func.__code__.co_firstlineno + 1,
    )
    warnings.simplefilter("default", DeprecationWarning)  # reset filter
    logger.warn(
        "%s - DeprecationWarning: Call to deprecated function %s. %s:%s"
        % (datetime.datetime.now(), func.__name__, func.__code__.co_filename, func.__code__.co_firstlineno + 1)
    )
    return func(*args, **kwargs)