You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: read_async.rs
    path of file: ./repos/polars/crates/polars/tests/it/io/avro
    
    the code of the file until where you have to start completion: use apache_avro::Codec;
use arrow::io::avro::avro_schema::read_async::{block_stream, read_metadata};
use arrow::io::avro::read;
use futures::{pin_mut, StreamExt};
use polars_error::PolarsResult;

use super::read::{schema, write_avro};

async fn test(codec: Codec) -> PolarsResult<()> {
    let avro_data = write_avro(codec).unwrap();
 
    
async fn test(codec: Codec) -> PolarsResult<()> {
    let avro_data = write_avro(codec).unwrap();
    let (_, expected_schema) = schema();

    let mut reader = &mut &avro_data[..];

    let metadata = read_metadata(&mut reader).await?;
    let schema = read::infer_schema(&metadata.record)?;

    assert_eq!(schema, expected_schema);

    let blocks = block_stream(&mut reader, metadata.marker).await;

    pin_mut!(blocks);
    while let Some(block) = blocks.next().await.transpose()? {
        assert!(block.number_of_rows > 0 || block.data.is_empty())
    }
    Ok(())
}