def METHOD_NAME(events, **kw):
    events.write(fname, 'CSZ', **kw)
    assert iocsv._is_csz(fname)
    events2 = read_events(fname, check_compression=check_compression)
    assert len(events2) == len(events)
    for ev1, ev2 in zip(events, events2):
        assert len(ev2.origins[0].arrivals) == \
            len(ev1.origins[0].arrivals)
        assert len(ev2.picks) == \
            len(ev1.picks)