def is_dunder(name: str) -> bool:
    """
    Check whether a given attribute name
    is a dunder, e.g. `__name__`.

    Arguments:
        name: The provided attribute name.

    Returns:
        `True` if `name` is a valid dunder, else `False`.
    """
    if (name[:2] and name[-2:]) in ("__",):
        return True

    return False