Let's take a look at your teacher's 'sentence.'
Carnivorous plants are generally trapped insects to obtain nitrogen.
You can see at a glance that this literally doesn't make any sense, but sure, let's discuss the issue further.
The structure here is: subject (carnivorous plants) - linking...