def METHOD_NAME(path: str, compression: Optional[str], chunksize: Optional[int]) -> None:
    df = pd.DataFrame({"c0": [0, 1], "c1": ["foo", "boo"]})
    paths = [f"{path}year={y}/month={m}/0.csv{EXT.get(compression, '')}" for y, m in [(2020, 1), (2020, 2), (2021, 1)]]
    for p in paths:
        wr.s3.to_csv(df, p, index=False, compression=compression, header=True)
    df2 = wr.s3.read_csv(path, dataset=True, chunksize=chunksize, header=0)
    if chunksize is None:
        assert df2.shape == (6, 4)
        assert df2.c0.sum() == 3
    else:
        for d in df2:
            assert d.shape == (1, 4)