<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_log(self, msg):
 """Debug log messages if debug=True"""

        if not self.debug:
            return
        sys.stderr.write('{}\n'.format(msg))