Except it’s not a Beatles song. It was a 1972 single by John Lennon and Yoko Ono as Plastic Ono Band.
Here’s a more approachable tune from Lennon’s last solo album called “Woman”
https://www.youtube.com/watch?v=Y0jTA0DtZvY
A more approachable tune and a bit less unnecessarily combative. But even so there are better songs on that album IMO.
That one; “Woman” is a beautiful song as her performs it.
The other one: Woman is the N___” I have heard of it, but I don’t recall ever actually listening to the song itself.
Some of John’s late career hard rock and roll was harsh and not pleasant to listen to.
I recall seeing this LP for sale in record stores maybe a year after it was released, but when I saw the title, I wanted nothing to do with it. I bought “Houses of The Holy” by Led Zepplin instead. I enjoyed D’Yer Mak’er and other cuts.