Add missing import of warnings module.