def METHOD_NAME(id: str, message: str):
    """
    Notify the user about a deprecation/deactivation. id uniquely
    identifies this deprecation.
    """
    maybe_last_shown = notification_last_shown.get(id)
    now = datetime.datetime.now()
    interval = setting_deprecate_warning_interval_hours.get()
    threshold = now - datetime.timedelta(hours=interval)
    if maybe_last_shown is not None and maybe_last_shown > threshold:
        return
    actions.app.notify(message, "Deprecation warning")
    notification_last_shown[id] = now