def _tgrep_node_literal_value(node):
    return (node.label() if _istree(node) else text_type(node))
Gets the string value of a given parse tree node, for comparison
dataset/ETHPy150Open nltk/nltk/nltk/tgrep.py/_tgrep_node_literal_value