<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def elements_equal(first, *others):
 """ Check elements for equality """

    f = first
    lf = list(f)
    for e in others:
        le = list(e)
        if (len(lf) != len(le)
                or f.tag != e.tag
                or f.text != e.text
                or f.tail != e.tail
                or f.attrib != e.attrib
                or (not all(map(elements_equal, lf, le)))
                ):
            return False
    return True