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: bootstrap.rs
    path of file: ./repos/risc0/xtask/src
    
    the code of the file until where you have to start completion: // Copyright 2024 RISC Zero, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

use std::{fmt::Write, process::Command};

use clap::Parser;
use risc0_circuit_recursio
    
    fn generate_rv32im_control_ids() -> Vec<Digest> {
        let loader = Loader::new();
        tracing::info!("computing control IDs with SHA-256");
        let control_id_sha256 =
            loader.compute_control_id(&CpuHal::new(Sha256HashSuite::<BabyBear>::new_suite()));
        tracing::info!("computing control IDs with Poseidon2");
        let control_id_poseidon2 =
            loader.compute_control_id(&CpuHal::new(Poseidon2HashSuite::new_suite()));
        tracing::info!("computing control IDs with Blake2b");
        let control_id_blake2b =
            loader.compute_control_id(&CpuHal::new(Blake2bCpuHashSuite::new_suite()));

        let contents = format!(
            include_str!("templates/control_id_rv32im.rs"),
            control_id_sha256[0],
            control_id_sha256[1],
            control_id_sha256[2],
            control_id_sha256[3],
            control_id_sha256[4],
            control_id_sha256[5],
            control_id_sha256[6],
            control_id_sha256[7],
            control_id_sha256[8],
            control_id_sha256[9],
            control_id_sha256[10],
            control_id_poseidon2[0],
            control_id_poseidon2[1],
            control_id_poseidon2[2],
            control_id_poseidon2[3],
            control_id_poseidon2[4],
            control_id_poseidon2[5],
            control_id_poseidon2[6],
            control_id_poseidon2[7],
            control_id_poseidon2[8],
            control_id_poseidon2[9],
            control_id_poseidon2[10],
            control_id_blake2b[0],
            control_id_blake2b[1],
            control_id_blake2b[2],
            control_id_blake2b[3],
            control_id_blake2b[4],
            control_id_blake2b[5],
            control_id_blake2b[6],
            control_id_blake2b[7],
            control_id_blake2b[8],
            control_id_blake2b[9],
            control_id_blake2b[10],
        );
        tracing::debug!("contents of rv32im control_id.rs:\n{contents}");

        tracing::info!("writing control ids to {CONTROL_ID_PATH_RV32IM}");
        std::fs::write(CONTROL_ID_PATH_RV32IM, contents).unwrap();

        // Use rustfmt to format the file.
        Command::new("rustfmt")
            .arg(CONTROL_ID_PATH_RV32IM)
            .status()
            .expect("failed to format {CONTROL_ID_PATH_RV32IM}");

        control_id_poseidon2
    }