The correct answer is parody.
Parody happens when authors try to imitate another piece of literature, or the entire genre, or another author, but do so in a humorous way, or sometimes, even a mocking one.
In literature, we can find a famous example of parody in Alexander Pope's narrative poem 'The R.ape of the Lock,' which is written in order to parody the genre of epic, heroic poems, and their seemingly grand themes.