<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def iter_window(g, window_size):
 """ interate over 'g' bit-by-bit and yield a window with the given 'window_size' width. [1, 2] [2, 3] [3, 4] [1, 2, 3] [2, 3, 4] [3, 4, 5] [1, 2] [2, 3] [3, 4] """

    values = collections.deque(maxlen=window_size)
    for value in g:
        values.append(value)
        if len(values) == window_size:
            yield list(values)