<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def collect_compare_zips_into(left, right, added, removed, altered, same):
 """ collects the differences between left and right ZipFile instances into the lists added, removed, altered, and same. Returns a tuple of added, removed, altered, same """


    for event, filename in compare_zips(left, right):
        if event == LEFT:
            group = removed
        elif event == RIGHT:
            group = added
        elif event == DIFF:
            group = altered
        elif event == SAME:
            group = same
        else:
            assert False

        if group is not None:
            group.append(filename)

    return added, removed, altered, same