How do you get diplomatic immunity?

Can you answer this question?