Random-Sample-Weighting This code is for paper Covariate-Shift Generalization via Random Sample Weighting (AAAI2023)