def METHOD_NAME(node):
    """ instead this could be composed of multiple calls to 'get_indices_from_groupnum' function """
    socket_index = 1
    vis_dict = {}
    vis_dict[0] = True # selector always visible, first socket
    for group_index in range(node.max_groups):
        vis_dict[socket_index] = group_index < node.num_visible_groups
        socket_index += 1
        for set_item in range(node.max_items_per_group):
            vis_dict[socket_index] = (group_index < node.num_visible_groups and set_item < node.num_items_per_group)
            socket_index += 1
    # g = "".join(["01"[k] for k in node.values()])
    # print(g)
    return vis_dict