<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write(self, data):
 """Print any command sent in raw format. :param bytes data: arbitrary code to be printed. """

        self.device.write(data)
        if self.auto_flush:
            self.flush()