def _is_end(event, node, tagName): # pylint: disable=invalid-name
    """Return true if (event, node) is an end event for tagname."""

    return event == pulldom.END_ELEMENT and node.tagName == tagName