def is_internal_function_name(name: str) -> bool:
    """If the function name is internal.

    Skips underscored functions but keeps special functions such as __init__.
    """
    return name.startswith('_') and not (name.startswith('__') and name.endswith('__'))