<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_data(self, command, data, timeout=None):
 """Shortcut for writing specifically a DataMessage."""

    self.write_message(FilesyncMessageTypes.DataMessage(command, data), timeout)