Generalizing Importance Weighting to A Universal Solver for Distribution Shift Problems T ongtong Fang 1 Nan Lu2,3 Gang Niu