def METHOD_NAME(name: str):
    """Raise an error if this is not a valid interface name.
    .. seealso:: https://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-names-interface
    :param name: The interface name to validate.
    :type name: str
    :raises:
        - :class:`InvalidInterfaceNameError` - If this is not a valid object path.
    """
    if not is_interface_name_valid(name):
        raise InvalidInterfaceNameError(name)