1973 French film
Le Magnifique (literally The Magnificent; also known as The Man from Acapulco) is a 1973 spy comedy, a French/Italian international co-production, starring Jean-Paul Belmondo, Jacqueline Bisset and Vittorio Caprioli that was directed by Philippe de Broca. Le Magnifique is a slapstick spoof of B-series spy films and novels and the men who write them.
In the film, a financially struggling writer of spy novels imagines himself as an idealised superspy. In his imagination, he casts his female neighbor as the spy's paramour, and his publisher as an Albanian villain. The imagination is soon reflected in the formation of a love triangle in the writer's life.
Plot summary adapted from Wikipedia, licensed under CC BY-SA 4.0.