def element_values_equals(element1: Element, element2: Element): return element1.get_level() == element2.get_level() \ and element1.get_pointer() == element2.get_pointer() \ and element1.get_tag() == element2.get_tag() \ and element1.get_value() == element2.get_value()
def _has_tag(element: Element, tag: Tag) -> bool: return element.get_tag() == tag.value