The expression "take leave of your senses" is used to describe when someone behaves in a very strange or irrational way. It means that the person has lost their normal judgment and is not behaving the way they usually would. For example, if someone suddenly decides to quit their job without having another one lined up, you could say that they have taken leave of their senses. This expression is often used in a negative way to criticize someone's behavior, but it can also be used in a humorous or light-hearted way.