def METHOD_NAME(comparison_column, parsed_case_expr, m, u):
    comparison_3 = {}
    comparison_3["comparison_levels"] = []
    found_max_level = False
    num_levels = len(parsed_case_expr)
    for index, level in enumerate(parsed_case_expr):
        max_level = False
        if level["value"] == -1:
            level["is_null_level"] = True
        elif not found_max_level:
            max_level = True
            found_max_level = True
        reverse_index = num_levels - index
        if level["value"] != -1:
            if m[reverse_index]:
                level["m_probability"] = m[reverse_index]
            if u[reverse_index]:
                level["u_probability"] = u[reverse_index]
        del level["value"]
        tf = "term_frequency_adjustments" in comparison_column
        cn = "col_name" in comparison_column
        if all([tf, cn, max_level]):
            level["tf_adjustment_column"] = comparison_column["col_name"]
        comparison_3["comparison_levels"].append(level)
    return comparison_3