<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def on(self, level):
 """ Turns on all debugging messages up to the specified level 0 = None; 1 = User; """

        if isinstance(level, int) and level >= 0 and level <= 3:
            self._debug_level = level