Black Butterfly

The entire film is just a dream writer Paul Lopez (Antonio Banderas) is having.

As he wakes up from a drunken stupor, Paul, who has been suffering writer's block, begins to type up the story of his dream before he forgets it. He names the story Black Butterfly. 

Thanks Tim (Spectre)!