code: def tee_lookahead(t, i):
      
      for value in islice(t.__copy__(), i, None):
          return value
      raise IndexError(i)
docs: Inspect the i-th upcomping value from a tee object
         while leaving the tee object at its current position.
  
         Raise an IndexError if the underlying iterator doesn't
         have enough values.