code: def _get_end_event(parser, tagName):
      
  
      (event, node) = six.next(parser)
  
      if event != pulldom.END_ELEMENT or node.tagName != tagName:
          raise ParseError(
              'Expecting %s end tag, got %s %s' % (tagName, event, node.tagName))
docs: Check that the next event is the end of a particular XML tag.