def __iter__(self):
sorted_features = list()<EOL>root = self<EOL>if self.is_pseudo:<EOL><INDENT>root = self.children[<NUM_LIT:0>].multi_rep<EOL><DEDENT>root._visit(L=sorted_features, marked={}, tempmarked={})<EOL>for feat in sorted_features:<EOL><INDENT>yield feat<EOL><DEDENT>
Generator iterates through a feature and all its subfeatures.