def METHOD_NAME(a, b):
    a_texkey, a_entry = a
    b_texkey, b_entry = b
    assert a_texkey == b_texkey
    assert a_entry.type == b_entry.type
    assert set(a_entry.fields.items()) == set(b_entry.fields.items())
    for role in set(a_entry.persons.keys() + b_entry.persons.keys()):
        a_people_set = set(repr(person) for person in a_entry.persons[role])
        b_people_set = set(repr(person) for person in b_entry.persons[role])
        assert a_people_set == b_people_set
    return True