episode of the office where they learn cpr
"Stress Relief", which constituted the fourteenth and fifteenth episodes of season five.
Stress Relief (The Office)
Michael arranges for a CPR training session for the employees, but they are too easily distracted and the lesson proves fruitless. The session ends badly when Dwight destroys the expensive CPR dummy and wears its face, earning another rebuke from David Wallace. 
wiki:8689110
Stress Relief (The Office) [SEP] Part one
After Stanley is released from the hospital, his doctors warn him to keep his stress levels under control to avoid further damaging his health. Michael arranges for a CPR training session for the employees, but they are too easily distracted and the lesson proves fruitless. The session ends badly when Dwight destroys the expensive CPR dummy and wears its face, earning another rebuke from David Wallace. Dwight is ordered to apologize to his co-workers and get signatures acknowledging that they forgive him, but after he openly declares that his apology is insincere and denies that he is responsible for Stanley's heart attack, they refuse to sign.