A similar film is the Richard Dreyfuss vehicle “Moon Over Parador”, but the twist is that he is hired to play the part of a South American dictator who has an untimely death, by his minions who don’t want to lose power when the people find out the strongman is toes up.
Hugo Chavez? I think they blew that, but they tried for a while.