I Dream of Cosmo

 is the 4th episode of Season 9.

Plot
Cosmo loses his memory and mistakenly thinks he's supposed to grant wishes for Timmy's father.