<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def put(self, message):
 """Enqueues the given message for writing to the wire. The message must be small enough to fit in a single frame. """

        if self.draining is False:
            self.drain()

        return self._enqueue(message)