Generalizing graph neural networks across graphs, time, and tasks