I've trained all of my snakes to do whatever they want whenever they want.
snakes can't be trained, however, regular handling of an anxious snake will eventually calm it down (usually). But the snake has not been trained, it has been handled enough that it no longer views you as a threat.