Adaptive Risk Minimization: A Meta-Learning Approach for Tackling Group Shift