Including blackface, which other threads are suggesting is just totally impossible to pull off. The reality is it's perfectly fine to do anything offensive so long as the the joke isn't just reinforcing those beliefs.
Not any different than the very common older, white racist character in sitcoms today. They're funny! Not because racism is funny, but because the unacceptability of their racism is funny.
Not any different than the very common older, white racist character in sitcoms today. They're funny! Not because racism is funny, but because the unacceptability of their racism is funny.