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: completion.rs
    path of file: ./repos/kcl/kclvm/tools/src/LSP/src
    
    the code of the file until where you have to start completion: //! Complete for KCL
//! Now supports code completion in trigger mode (triggered when user enters `.`, `:` and `=`), schema attr and global variables
//! and the content of the completion includes:
//! + variable
//! + schema attr name
//! + dot(.)
//!     + import path
//!     + schema attr
//!     + builtin function(str function)
//!     + definitions in pkg
//!     + system module functions
//! + assign(=, :)
//!     + schema attr value
//!     + variable value
//! + new line
//!     + schema init

use std::io;
use std::{fs, path::Path};

use crate::goto_def::find_def_with_gs;
use indexmap::IndexSet;
use kclvm_ast::ast::{ImportStmt, Program, Stmt};
use kclvm_ast::MAIN_PKG;
use kclvm_config::modfil
    
    fn schema_type_attr_completion() {
        let (file, program, _, _, gs) =
            compile_test_file("src/test_data/completion_test/schema/schema.k");

        let pos = KCLPos {
            filename: file.to_owned(),
            line: 18,
            column: Some(15),
        };

        let mut got = completion(None, &program, &pos, &gs).unwrap();
        match &mut got {
            CompletionResponse::Array(arr) => {
                let labels: Vec<String> = arr.iter().map(|item| item.label.clone()).collect();
                assert!(labels.contains(&"name".to_string()));
            }
            CompletionResponse::List(_) => panic!("test failed"),
        }

        let pos = KCLPos {
            filename: file.to_owned(),
            line: 19,
            column: Some(21),
        };

        let mut got = completion(None, &program, &pos, &gs).unwrap();
        match &mut got {
            CompletionResponse::Array(arr) => {
                let labels: Vec<String> = arr.iter().map(|item| item.label.clone()).collect();
                assert!(labels.contains(&"name".to_string()));
            }
            CompletionResponse::List(_) => panic!("test failed"),
        }
    }