def getCommentElement(elementNode):
 for childNode in elementNode.childNodes:
  if (childNode.getNodeName() == '#comment'):
   if childNode.getTextContent().startswith(globalOriginalTextString):
    return childNode
 return None

def getCommentElement ( elementNode ) : for childNode in elementNode . childNodes : if ( childNode . getNodeName ( ) == '#comment' ) : if childNode . getTextContent ( ) . startswith ( globalOriginalTextString ) : return childNode return None
get a carving for the file using an import plugin .