A well-known survival tactic in the natural world is an organism mimicking the appearance of something else in order to fool predators. Leafy-looking insects are one example, and for the Hemeroplanes triptolemus moth, survival of its caterpillar form means disguising itself as a snake!
The caterpillar does a great job of mimicking a snake behaviourally as well. It is actually throwing itself backwards and twisting to reveal its underside which is hidden when the caterpillar is at rest. The anterior (head-end) body segments of the caterpillar inflate to form a diamond-shaped head, when fully inflated the “eyes” of the snake-like false head seem to open.
To scare predators off quickly, this harmless caterpillar will also sometimes move its body like a striking snake, despite the fact that it doesn't have fangs nor venom. Hossie explains that Hemeroplanes triptolemus is probably the most well-known of caterpillars with distinctive 'eyespots':
Many animals have conspicuous eye-like spots on their body. In most animals these ‘eyespots’ are thought to intimidate predators from attacking or deflect the predator strikes away from vulnerable body parts. That ‘eyespots’ could help prey by resembling the eyes of a predator’s own enemies is thought to be particularly true for butterfly and moth caterpillars. Caterpillars with eyespots are often cited to be snake mimics that startle attacking birds which mistake them for dangerous snakes. Despite widespread acceptance, this phenomena is surprisingly understudied.
Here is a photo of Hemeroplanes triptolemus fully grown and looking nothing like a slithery snake: