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: record_enum.rs
    path of file: ./repos/burn/crates/burn-derive/src/module
    
    the code of the file until where you have to start completion: use crate::shared::enum_variant::EnumVariant;
use proc_macro2::{Ident, TokenStream};
use 
    
    fn gen_record_type(&self, record_name: &Ident, generics: &Generics) -> TokenStream {
        let mut variants = quote! {};

        // Capture the Record enum variant types
        for variant in self.variants.iter() {
            let ty = &variant.ty;
            let name = &variant.ident;

            variants.extend(quote! {
                /// The module record associative type.
                #name(<#ty as burn::module::Module<B>>::Record),
            });
        }

        let (generics, _generics_ty, generics_where) = generics.split_for_impl();

        quote! {

            /// The record type for the module.
            #[derive(burn::record::Record)]
            pub enum #record_name #generics #generics_where {
                #variants
            }
        }
    }