It can also be used as a temporary insult. Saying that somebody pulled a (whatever) doesn't mean that you necessarily think they are whatever you said; it means that you think only what they did at that time was (whatever).
2) You totally pulled a dumbass.
3) So, what...? You're going to pull a 007?
Friend 1: So when my boss screwed me over at work, I smashed up his car with a crowbar.
Friend 2: Man... you pulled a Walter Sobchak!