How let a function be used in a guard like is_binary/1

I noticed that some function like is_binary/1 is marked as “Allowed in guard tests”. How can I make my own functions/guards like that?

If I defguard and def the same name, the compiler complains.

Thanks!