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: mod.rs
    path of file: ./repos/greptimedb/src/servers/tests/py_script
    
    the code of the file until where you have to start completion: // Copyright 2023 Greptime Team
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You 
    
async fn test_insert_py_udf_and_query() -> Result<()> {
    let catalog = "greptime";
    let schema = "test";
    let name = "hello";
    let script = r#"
@copr(returns=['n'])
def hello() -> vector[str]:
    return 'hello';
"#;

    let column_schemas = vec![
        ColumnSchema::new("script", ConcreteDataType::string_datatype(), false),
        ColumnSchema::new("schema", ConcreteDataType::string_datatype(), false),
        ColumnSchema::new("name", ConcreteDataType::string_datatype(), false),
    ];

    let columns: Vec<VectorRef> = vec![
        Arc::new(StringVector::from(vec![script])),
        Arc::new(StringVector::from(vec![schema])),
        Arc::new(StringVector::from(vec![name])),
    ];

    let raw_schema = Arc::new(Schema::new(column_schemas));
    let recordbatch = RecordBatch::new(raw_schema, columns).unwrap();

    let table = MemTable::table("scripts", recordbatch);

    let query_ctx = QueryContextBuilder::default()
        .current_catalog(catalog.to_string())
        .current_schema(schema.to_string())
        .build();

    let instance = create_testing_instance(table);
    instance
        .insert_script(query_ctx.clone(), name, script)
        .await?;

    let output = instance
        .execute_script(query_ctx.clone(), name, HashMap::new())
        .await?;

    match output.data {
        OutputData::RecordBatches(batches) => {
            let expected = "\
+-------+
| n     |
+-------+
| hello |
+-------+";
            assert_eq!(expected, batches.pretty_print().unwrap());
        }
        _ => unreachable!(),
    }

    let res = instance
        .do_query("select hello()", query_ctx)
        .await
        .remove(0)
        .unwrap();
    match res.data {
        OutputData::AffectedRows(_) => (),
        OutputData::RecordBatches(_) => {
            unreachable!()
        }
        OutputData::Stream(s) => {
            let batches = common_recordbatch::util::collect_batches(s).await.unwrap();
            let expected = "\
+---------+
| hello() |
+---------+
| hello   |
+---------+";

            assert_eq!(expected, batches.pretty_print().unwrap());
        }
    }

    Ok(())
}