<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(self, s, level=2):
 """Write a debug message."""

        self.write(s, level=level, color='white')