Learning from imagined experiences via an endogenous prediction error | Synapse