<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def typing(self, room: Room, timeout: int = 5000):
 """ Send typing event directly to api Args: room: room to send typing event to timeout: timeout for the event, in ms """

        path = f'/rooms/{quote(room.room_id)}/typing/{quote(self.user_id)}'
        return self.api._send('PUT', path, {'typing': True, 'timeout': timeout})