The function of the noun phrase <em>Green, leafy vegetables </em>in this sentence is that of the subject of the sentence.
What contains important vitamins for a healthy body? - Green, leafy vegetables.
Someone or something alive and able to think or feel