def _is_tempo_or_prob(line: dict) ->bool:
    """
    Returns True if report type is TEMPO or non-null probability
    """
    return line.get('type') == 'TEMPO' or line.get('probability') is not None
