def get_icon(fdef: feedback_schema.FeedbackDefinition, result: float) -> str:
    """
    Get the icon for a given feedback definition and result.

    Args:
        fdefThe feedback definition.

        result: The result of the feedback.

    Returns:
        str: The icon for the feedback
    """
    cat = CATEGORY.of_score(
        result or 0,
        higher_is_better=fdef.higher_is_better
        if fdef.higher_is_better is not None
        else True,
        is_distance="distance" in fdef.name.lower(),
    )
    return cat.icon

    Get the icon for a given feedback definition and result.

    Args:
        fdefThe feedback definition.

        result: The result of the feedback.

    Returns:
        str: The icon for the feedback
    
src/dashboard/trulens/dashboard/display.py