def _stat_name(feat_name, stat_mode):
if feat_name[-<NUM_LIT:1>] == '<STR_LIT:s>':<EOL><INDENT>feat_name = feat_name[:-<NUM_LIT:1>]<EOL><DEDENT>if feat_name == '<STR_LIT>':<EOL><INDENT>feat_name = '<STR_LIT>'<EOL><DEDENT>if stat_mode == '<STR_LIT>':<EOL><INDENT>return feat_name<EOL><DEDENT>return '<STR_LIT>' % (stat_mode, feat_name)<EOL>
Set stat name based on feature name and stat mode