def METHOD_NAME(mocker, guest):
    path = "openbb_terminal.core.session.session_model."
    mock_delete_session = mocker.patch(path + "Hub.delete_session")
    mock_remove = mocker.patch(path + "Local.remove")
    mock_remove_log_handlers = mocker.patch(path + "remove_log_handlers")
    mock_set_default_user = mocker.patch(path + "set_default_user")
    mock_setup_logging = mocker.patch(path + "setup_logging")
    mock_plt_close = mocker.patch(path + "plt.close")
    auth_header = "Bearer test_token"
    token = "test_token"  # noqa: S105
    base_url = "https://payments.openbb.co/"
    session_model.logout(auth_header, token)
    if not guest:
        mock_delete_session.assert_called_once_with(
            auth_header, token, base_url=base_url
        )
        assert mock_remove.call_args_list[0] == mocker.call(SESSION_FILE_PATH)
        assert mock_remove.call_args_list[1] == mocker.call(HIST_FILE_PATH)
        assert mock_remove.call_args_list[2] == mocker.call(
            get_current_user().preferences.USER_ROUTINES_DIRECTORY / "hub"
        )
    mock_remove_log_handlers.assert_called_once()
    mock_set_default_user.assert_called_once()
    mock_setup_logging.assert_called_once()
    mock_plt_close.assert_called_once()