Who wrote Weird Al Yankovic's song on North Korea?

It’s at the end of a John Oliver show from about 2018 – if you search for John Oliver Charlottesville North Korea, that will find it.

It seems North Koreans are accordion fans (!), so John Oliver recruited accordion-player Weird Al and his band to send a message to them. The performance was hilarious, and wonderful in every other possible way. Who gets the credit for it?

According to Weird Al’s site, he did.

Relevant quote, for the TL;DR treatment:

In August 2017, Al wrote and performed “The North Korea Polka (Please Don’t Nuke Us)” for Last Week Tonight with John Oliver (HBO).