code: def write_eof(self):
          
          self._check_writable()
          self._transport._can_write.wait()
          self._transport.write_eof()
docs: Close the write direction of the transport.
  
          This method will block if the transport's write buffer is at capacity.