What role does Pakistan’s military play in politics?

Pakistanis will go to the polls for a general election this week as the military is accused of meddling.