I think it depends on who gets to the code first. Where I rotated, a member of the nursing staff (usually someone with a lot of experience in codes) would already be there by the time we got the code page and would already have established themselves as being "in charge of the code". We basically just did whatever he/she delegated to us when we got there - chest compressions, etc.
Anyone with ACLS certification can run a code, it doesn't always have to be a doc. I know that docs are needed to intubate and pronounce the patient, at least that's how it was at the VA that I rotated at. Otherwise, the nurses were able to place the IVs, push the meds, do chest compressions, and bag the patients.
So, if you walk slowly enough after getting that code page, you can guarantee that as an intern you'll never be in charge of a code 😀 I might utilize that tactic a little when I'm starting out as one a month from now, but I know that I will eventually get to the point where I am confident enough in myself that I can walk into a code and call all the shots.