Dynamic representations and generative models of brain function