Multi-domain improves out-of-distribution and data-limited scenarios for medical image analysis