What is a Deputy Leader for?

There are five big selection contests happening in the Labour Party at the moment. For Leader, Deputy Leader, Leader…