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: runtime_utils.rs
    path of file: ./repos/nearcore/test-utils/testlib/src
    
    the code of the file until where you have to start completion: use near_chain_configs::Genesis;
use near_crypto::PublicKey;
use near_primitives::account::{AccessKey, Account};
use near_primitives::hash::hash;
use near_primitives::state_record::StateRecord;
use near_primitives::types::{AccountId, Balance};
use near_primitives::version::PROTOCOL_VERSION;

pub fn alice_account() -> AccountId {
    "alice.near".parse().unwrap()
}
pub fn bob_account() -> AccountId {
    "bob.near".parse().unwrap()
}
pub fn caro
    
pub fn add_contract(genesis: &mut Genesis, account_id: &AccountId, code: Vec<u8>) {
    let mut is_account_record_found = false;
    let hash = hash(&code);
    let records = genesis.force_read_records().as_mut();
    for record in records.iter_mut() {
        if let StateRecord::Account { account_id: record_account_id, ref mut account } = record {
            if record_account_id == account_id {
                is_account_record_found = true;
                account.set_code_hash(hash);
            }
        }
    }
    if !is_account_record_found {
        records.push(StateRecord::Account {
            account_id: account_id.clone(),
            account: Account::new(0, 0, 0, hash, 0, PROTOCOL_VERSION),
        });
    }
    records.push(StateRecord::Contract { account_id: account_id.clone(), code });
}