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: benchmarking.rs
    path of file: ./repos/joystream/runtime-modules/constitution/src
    
    the code of the file until where you have to start completion: #![cfg(feature = "runtime-benchmarks")]

use crate::{Call, Config, Cons
    
fn assert_last_event<T: Config>(generic_event: <T as Config>::Event) {
    let events = System::<T>::events();
    let system_event: <T as frame_system::Config>::Event = generic_event.into();
    // compare to the last event record
    let EventRecord { event, .. } = &events[events.len() - 1];
    assert_eq!(event, &system_event);
}