def METHOD_NAME(check_compression=False):
    events = read_events()
    with NamedTemporaryFile(suffix='.csz') as ft:
        fname = ft.name
        events.write(fname, 'CSZ')
        assert iocsv._is_csz(fname)
        events2 = read_events(fname, check_compression=check_compression)
        assert events2[0]._format == 'CSZ'
        assert len(events2) == len(events)