The best example of an extended metaphor from the options provided is:
an entire poem comparing a swimmer to a dolphin.
This is because an extended metaphor typically involves a comparison that is developed over several lines or throughout an entire work, rather than being limited to a single line or brief phrase.