Understand and predict microbiome and resistome dynamics in response to perturbations across diverse populations and environments