def METHOD_NAME(df_local, chunk_size, parallel, array_type):
    df = df_local
    x = df.x.to_numpy()
    total = 0
    for i1, i2, chunk in df.to_items(['x'], chunk_size=chunk_size, parallel=parallel, array_type=array_type):
        np.testing.assert_array_equal(x[i1:i2], chunk[0][1])
        total += sum(chunk[0][1])
    assert total == x.sum()