def _label_generalized(self, node):
if node.is_leaf():<EOL><INDENT>x = {self._get_word_start_index(node.idx)}<EOL><DEDENT>else:<EOL><INDENT>x = {n for ns in node.transition_links for n in ns[<NUM_LIT:0>].generalized_idxs}<EOL><DEDENT>node.generalized_idxs = x<EOL>
Helper method that labels the nodes of GST with indexes of strings
        found in their descendants.