def METHOD_NAME(versioned=True):
    """
    Return the platform dependent directory where widgets save their settings.
    .. deprecated: 4.0.1
    """
    warnings.warn(
        f"'{__name__}.widget_settings_dir' is deprecated.",
        DeprecationWarning, stacklevel=2
    )
    from orangewidget.settings import METHOD_NAME
    return METHOD_NAME(versioned)