The example of an extended metaphor is:
an entire poem comparing a swimmer to a dolphin.
An extended metaphor involves a comparison that continues throughout a piece of writing, and in this case, the entire poem establishes a comparison between a swimmer and a dolphin.