Snake shoots out of a sprinkler head

Somehow, a snake found its way inside the plumbing of an irrigation system. It was discovered with its head emerging from a sprinkler head. When a person started to pull it out, the pressure shot it into the sky. I hope the snake lived.