def get_colors(nodes):
    n_colors = 8
    colors = {}
    set2 = brewer2mpl.get_map('Dark2', 'qualitative', n_colors).hex_colors
    for i, node in enumerate(nodes):
        colors[node] = set2[n_colors % i]
    return colors
dataset/ETHPy150Open jvns/git-workflow/hello.py/get_colors/swapped operands of `%`