“Imagine” is the Communist Manifesto set to music.
John Lennon, when asked about the meaning of the lyrics, said exactly that. He clarified that he wasn't as much a Communist as a "British Socialist" (not that it makes a heck of a lot of difference).
When I read that they sang that at Carter's funeral my reaction was "Are You F'ing Kidding Me????"