<P> "Costume Contest" was directed by Dean Holland, an editor on the series, and written by Justin Spitzer . Holland also directed the fifth - season episode, "The Duel". It was the second episode to feature Timothy Olyphant, who was billed as a special guest star, in a guest appearance as Danny Cordray . David Koechner appears as Todd Packer, last seen in the sixth - season episode, "St. Patrick's Day". With the seventh season of The Office being Carell's last, the writers decided to divide the season into two distinct halves; the first half would "celebrate Carell's finale year and highlight different actors on the show", whereas the second half would focus on his departure and the search for a new manager . As such, "Costume Contest" was one of the first episodes of the season to specifically highlight other characters, in this case Robinson's character, Darryl . </P> <P> Within the week of the original air date, Hulu released four deleted scenes from the episode . In the first 87 - second clip, Dwight and Michael try to destroy Darryl's idea by having a fake fight which eventually fails . In the second 79 - second clip, Dwight kisses up to Darryl in case he is promoted . In the fourth 50 - second clip, Toby and Kelly explain why they want the coupon book while Oscar looks for something good in the book . </P> <Ul> <Li> Michael as MacGruber, then Darryl (Oscar's afro wig and a warehouse uniform) before changing back </Li> <Li> Dwight as "The Scranton Strangler" </Li> <Li> Jim as nothing, then Popeye </Li> <Li> Pam as Olive Oyl </Li> <Li> Ryan as Justin Bieber </Li> <Li> Andy as Bill Compton </Li> <Li> Stanley as a Samurai Warrior </Li> <Li> Kevin as Michael Moore </Li> <Li> Creed as a Mummy </Li> <Li> Meredith as Sookie Stackhouse </Li> <Li> Kelly as Snooki, then Nicki Minaj </Li> <Li> Erin as a hideous Monster </Li> <Li> Angela as a Penguin, then a sexy Nurse </Li> <Li> Toby as a Clown Hobo (reminiscent of Devon from the second season's Halloween episode) </Li> <Li> Oscar as a 70s pimp, then a "rational consumer" (but mistaken by Creed to be Edward James Olmos) </Li> <Li> Darryl as Dracula </Li> <Li> Phyllis as Supreme Court Justice Sonia Sotomayor </Li> <Li> Gabe as Lady Gaga </Li> <Li> Todd Packer as a pregnant Nun </Li> <Li> Bob Vance as Dirty Harry </Li> <Li> CeCe as Swee'Pea </Li> </Ul> <Li> Michael as MacGruber, then Darryl (Oscar's afro wig and a warehouse uniform) before changing back </Li>

Who was ryan dressed as on the office