<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def debug(mode=True):
 """ Change the debug level. There is only one debug level supported at the moment."""

    global DEBUG
    if mode: warnings.simplefilter('default')
    DEBUG = bool(mode)