Not a snake, looks like one but it’s just a Chrysalis mimicking the appearance of a snake.
The Pupa inside starts twerking when it detects something is out there, which makes the Chrysalis wiggle adding to the snake illusion.
If the ruse is successful, after 13 days of fooling predators, a
Dynastor darius butterfly emerges.
In case you hadn’t noticed, bugs be sneaky.