<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def directive(self, name, default=None):
 """Returns the loaded directive with the specified name, or default if passed name is not present"""

        return getattr(self, '_directives', {}).get(name,  hug.defaults.directives.get(name, default))