What are the function of alkaloids?

Can you answer this question?