class_docstr: The iterator for tokenstreams.  Iterate over the stream
  until the eof token is reached.
class_docstr_tok: ["The","iterator","for","tokenstreams",".","Iterate","over","the","stream","until","the","eof","token","is","reached","."]
code: def __next__(self):
      token = self.stream.current
      if token.type is TOKEN_EOF:
          self.stream.close()
          raise StopIteration()
      next(self.stream)
      return token
  
imports: import re
  from ast import literal_eval
  from collections import deque
  from operator import itemgetter
  from ._compat import implements_iterator
  from ._compat import intern
  from ._compat import iteritems
  from ._compat import text_type
  from .exceptions import TemplateSyntaxError
  from .utils import LRUCache
label_desc: Use image node_id 3 for calling the TokenStreamIterator obj's underlying member method code with example usage: obj.__next__() and returns: token