This song was written and performed by John Lennon on a tape recorder. Long after Lennon's death, the remaining Beatles finished the song, but the quality of the original recording was so bad that Paul McCartney had to imitate Lennon's voice, in effect, making the lead vocal a duet.
This and Free as a Bird were released on the Anthology album after the Fab Four broke up. Both have remained two of my favourite Beatles tunes. I made a video of Free as a Bird here.
Warning: I took liberties and made a couple of edits to the music.