MM-GEN: Enhancing Task Performance Through Targeted Multimodal Data Curation