def is_an_account_settings_page(context, account):
    """
    Return `true` if the current path is for one of the account "settings" pages.

    Used to determine whether or not to show the settings submenu.
    """
    path = context["request"].path
    return (
        path.startswith("/me/")
        or path.startswith(f"/{account.name}/profile")
        or path.startswith(f"/{account.name}/publishing")
    )