code: def iter_range(reader, start, end, prev_size=0):
      
  
      iter_ = search(reader, start, prev_size=prev_size)
  
      end_iter = itertools.takewhile(
          lambda line: line < end,
          iter_)
  
      return end_iter
docs: Creates an iterator which iterates over lines where
      start <= line < end (end exclusive)