code: def _is_last_child(self, tagname, attributes=None):
          
          children = self.cur_node.getchildren()
          if children:
              result = self._is_node(tagname, attributes, node=children[-1])
              return result
  
          return False
docs: Check if last child of cur_node is tagname with attributes