Bridging metalearning and metareasoning: Towards heterogeneous and compositional task distributions