def is_dunder(val: str) -> bool:
    """Returns True if a __dunder__ name, False otherwise."""
    return (len(val) > 4 and
            val[:2] == val[-2:] == '__' and
            val[2] != '_' and
            val[-3] != '_')