def METHOD_NAME():
    # setup
    data = np.random.choice(["foo", "bar", "baz"], size=100)
    flt = Categorize(dtype=data.dtype, labels=["foo", "bar", "baz"])
    filters = [flt]
    for compressor in compressors:
        a = array(data, chunks=5, compressor=compressor, filters=filters)
        # check round-trip
        assert_array_equal(data, a[:])
        # check chunks
        for i in range(20):
            cdata = a.store[str(i)]
            if a.compressor:
                chunk = a.compressor.decode(cdata)
            else:
                chunk = cdata
            actual = np.frombuffer(chunk, dtype="u1")
            expect = flt.encode(data[i * 5 : (i * 5) + 5])
            assert_array_equal(expect, actual)