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: get_blocks.rs
    path of file: ./repos/bazuka/src/node/api
    
    the code of the file until where you have to start completion: use super::messages::{GetBlocksRequest, GetBlocksResponse};
use super::{NodeContext, NodeError};
use crate::blockchain::Blockchain;
use crate::db::KvStore;
use std::sync::Arc;
use tokio::sync::RwLock;

pub async fn get_blocks<K: KvStore, B: Blockchain<K>>(
    context: Arc<RwLock<NodeContext<K, B>>>,
    req: GetBlocksRequest,
) -> 
    
    async fn test_get_blocks_non_existing() {
        let ctx = test_context();
        let resp = get_blocks(
            ctx.clone(),
            GetBlocksRequest {
                since: 200,
                count: 10,
            },
        )
        .await
        .unwrap();
        let block_indices = resp
            .blocks
            .iter()
            .map(|b| b.header.number)
            .collect::<Vec<_>>();
        assert!(block_indices.is_empty());
    }