def representative_feature(path, values):
    """Helper function for TSEL filter. Returns the representative node of a
    given path.

    Args:
        path (list): Path containing some node names.
        values (dict): values containing nodes and their values.

    Returns:
        str: Name of most valuable/representative node of the given path.
    """
    max_value = -1
    rep_node = None
    for node in path:
        if node == "VRN":
            continue

        if values[node] > max_value:
            max_value = values[node]
            rep_node = node
    return rep_node