MAGID: An Automated Pipeline for Generating Synthetic Multi-modal Datasets