pub fn gen_legal_stream_chunk( bitmap: &Bitmap, chunk_size: usize, append_only: bool, seed: u64, ) -> (Vec<Op>, ArrayImpl)