Metamaterial architecture from a self-shaping carnivorous plant