You burn 'em. Seriously, you walk the dog past a snake on a lead. The moment the dog shows any interest, they get zapped by the trainer. At the same time they quickly move dog away from the snake.

It only takes 2 or 3 experiences like that and the dog has no further interest in snakes.

Pete