@contract
def select_window(variances, acceptable_variances, window_sizes):
    n = len(variances)
    selected_windows = []
    for i in range(n):
        selected_windows.append([])
        for j in range(n):
            selected_size = window_sizes[0]
            for window_size in window_sizes:
                if variances[i][j][window_size] > \
                    acceptable_variances[i][j][window_size]:
                        break
                selected_size = window_size
            selected_windows[i].append(selected_size)
    return selected_windows
:type nestedList: List[NestedInteger]
dataset/ETHPy150Open beloglazov/openstack-neat/neat/locals/overload/mhod/multisize_estimation.py/select_window--crossover with--dataset/ETHPy150Open kamyu104/LeetCode/Python/nested-list-weight-sum.py/Solution.depthSum