pub fn serialize<S: Serializer>( imported_modules: &IndexMap<Vec<Symbol>, Program>, serializer: S ) -> Result<S::Ok, S::Error>