Imported from https://github.com/google-research/task_adaptation
