How do I check if I have permissions to execute a function whose permissions have been set declaratively without executing it?

Thx!