I doubt very highly this snake did a trick. There are a few snakes that when threatened, will roll over and play dead, such as hognose snakes. Some can even excrete small amounts of blood from their mouths to make the act even more convincing
It isn't possible to teach a snake tricks, they can only have conditioned behaviours, thats about as far as it goes. Such as "training" them to accept dead prey, etc.