original_docstring: 
      Interleave elements of `seq2` between consecutive elements of `seq1`.
  
          >>> list(interleave([1, 3, 5], [2, 4]))
          [1, 2, 3, 4, 5]
  
      
docstring: Interleave elements of `seq2` between consecutive elements of `seq1`.
docstring_tokens: Interleave elements of ` seq2 ` between consecutive elements of ` seq1 ` .
code: def interleave(seq1, seq2):
      """
      Interleave elements of `seq2` between consecutive elements of `seq1`.
  
          >>> list(interleave([1, 3, 5], [2, 4]))
          [1, 2, 3, 4, 5]
  
      """
      iterator1, iterator2 = iter(seq1), iter(seq2)
      leading = next(iterator1)
      for element in iterator1:
          yield leading
          yield next(iterator2)
          leading = element
  
      yield leading
code_tokens: def interleave ( seq1 , seq2 ) : iterator1 , iterator2 = iter ( seq1 ) , iter ( seq2 ) leading = next ( iterator1 ) for element in iterator1 : yield leading yield next ( iterator2 ) leading = element yield leading
short_docstring: Interleave elements of `seq2` between consecutive elements of `seq1`.
short_docstring_tokens: Interleave elements of ` seq2 ` between consecutive elements of ` seq1 ` .
comment: """
      Interleave elements of `seq2` between consecutive elements of `seq1`.
  
          >>> list(interleave([1, 3, 5], [2, 4]))
          [1, 2, 3, 4, 5]
  
      """