code: def fail_eof(self, end_tokens=None, lineno=None):
          
          stack = list(self._end_token_stack)
          if end_tokens is not None:
              stack.append(end_tokens)
          return self._fail_ut_eof(None, stack, lineno)
docs: Like fail_unknown_tag but for end of template situations.