code: def write(self, data):
          
          self._check_writable()
          self._transport._can_write.wait()
          self._transport.write(data)
docs: Write *data* to the transport.
  
          This method will block if the transport's write buffer is at capacity.