def _get_severity(c):
severities = c.feu.xpath('<STR_LIT>')<EOL>impacts = c.feu.xpath('<STR_LIT>')<EOL>severities = [convert_severity[s] for s in severities]<EOL>impacts = [convert_impact[i] for i in impacts]<EOL>return ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'][max(itertools.chain(severities, impacts))]<EOL>
1. Collect all <severity> and <impact-level> values.
2. Convert impact-level of 1-3 to MINOR, 4-7 to MODERATE, 8-10 to MAJOR
3. Map severity -> none to MINOR, natural-disaster to MAJOR, other to UNKNOWN
4. Pick the highest severity.