<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_eof(self):
 """Close the write direction of the transport. This method will block if the transport's write buffer is at capacity. """

        self._check_writable()
        self._transport._can_write.wait()
        self._transport.write_eof()