def _extract_errors(log_interpretation):
    """Extract all errors from *log_interpretation*, in no particular order."""
    errors = []
    for log_type in ('step', 'history', 'task'):
        errors.extend(log_interpretation.get(log_type, {}).get('errors') or ())
    return errors
