code: def offset_gen(offset, iterable, skip_signal=None):
    '''A generator that applies an `offset`, skipping `offset` elements from
    `iterable`. If skip_signal is a callable, it will be called with every
    skipped element.
    '''
    offset = int(offset)
    assert offset >= 0, 'negative offset'
  
    for item in iterable:
      if offset > 0:
        offset -= 1
        if callable(skip_signal):
          skip_signal(item)
      else:
        yield itef offset_gen(offset, iterable, skip_signal=None):
    '''A generator that applies an `offset`, skipping `offset` elements from
    `iterable`. If skip_signal is a callable, it will be called with every
    skipped element.
    '''
    offset = int(offset)
    assert offset >= 0, 'negative offset'
  
    for item in iterable:
      if offset > 0:
        offset -= 1
        if callable(skip_signal):
          skip_signal(item)
      else:
        yield item
docs: A generator that applies an `offset`, skipping `offset` elements from
    `iterable`. If skip_signal is a callable, it will be called with every
    skipped element.