<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 async def write(self, item):
 """ Write an item in the queue. :param item: The item. """

        await self._queue.put(item)
        self._can_read.set()

        if self._queue.full():
            self._can_write.clear()