def shall_border(self, tag, attrs):
        if tag.lower() not in ['div', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6']:
            return False
        for k in attrs:
            v = attrs[k]
            if k == 'class':
                if re.search('\\b(phpcode|classsynopsis|methodsynopsis|note|informaltable)\\b', v):
                    return 'gray'
                elif re.search('\\b(tip)\\b', v):
                    return 'blue'
                elif re.search('\\b(warning)\\b', v):
                    return 'pink'
                elif re.search('\\b(caution)\\b', v):
                    return 'yellow'
        return False
dataset/ETHPy150Open acabin/docphp/docphp.py/PopupHTMLParser.shall_border/original