code: def print_debug(self, msg):
          
          assert isinstance(msg, bytes)
          state = STATE_NAMES[self.state].encode()
          console_output(b'[dbg] ' + self.display_name.encode() + b'[' + state +
                         b']: ' + msg + b'\n')
docs: Log some debugging information to the console