Karn, Silver Golem

Artifact Creature -- Golem Legend
4/4
Whenever Karn, Silver Golem blocks or becomes blocked, it gets -4/+4 until end of turn.

: Target noncreature artifact becomes an artifact creature with power and toughness each equal to its converted mana cost until end of turn. (That artifact retains its abilities.)
Duplicant

Artifact Creature -- Shapeshifter
2/4
Imprint -- When Duplicant comes into play, you may remove target nontoken creature from the game. (The removed card is imprinted on this artifact.)
As long as a creature card is imprinted on Duplicant, Duplicant has that card's power, toughness, and creature types. It's still a Shapeshifter.
What happens if Player A animates an artifact Player B controls (say, a Gilded Lotus) with Karn's ability, then Imprints the Gilded Lotus on Duplicant?
Does Duplicant become a 5/5 until end of turn, and then reverts to a 2/4 when the Gilded Lotus is no longer a creature? Or does something else happen?