A <em>parody</em> is defined as <em>a piece of writing, music, art, speech, etc. that intentionally copies the style of someone famous or copies a particular situation, making the features or qualities of the original more noticeable in a way that is humorous.</em>
This definition matches the one presented in the question, as both refer to a work of imitation meant to be humorous.