def METHOD_NAME(name: str, what: str, node: Any) -> None:
    """Raise an exception for an invalid configdata YAML node.
    Args:
        name: The name of the setting being parsed.
        what: The name of the thing being parsed.
        node: The invalid node.
    """
    raise ValueError("Invalid node for {} while reading {}: {!r}".format(
        name, what, node))