What do you do when you need to pee while in labor?

Just curious..... I don't have an experience giving birth since I'm a first time mother. But what if you need to go as you're pushing the baby out of your vagina? There's got to be a way. Experienced mamas, please clarify.