<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def content_matchs(tag_content, content_transformer=None):
 """ Generate function, which checks whether the content of the tag matchs `tag_content`. Args: tag_content (str):
 Content of the tag which will be matched thru whole DOM. content_transformer (fn, default None):
 Function used to transform all tags before matching. This function can be used as parameter for .find() method in HTMLElement. """

    def content_matchs_closure(element):
        if not element.isTag():
            return False

        cont = element.getContent()
        if content_transformer:
            cont = content_transformer(cont)

        return tag_content == cont

    return content_matchs_closure