Rugrats
The Seven Voyages of Cynthia / My Friend Barney
S2 E20:
Tommy and Chuckie accidentally lose Angelica's favorite doll, Cynthia, and must face the dilemma of whether to tell Angelica. Chuckie gets an imaginary friend, Barney, whom no one except Chuckie can see or hear.