<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def send_patch_document(self, event):
 """ Sends a PATCH-DOC message, returning a Future that's completed when it's written out. """

        msg = self.protocol.create('PATCH-DOC', [event])
        return self._socket.send_message(msg)