<human>:  How to apply itertools.product to elements of a list of lists?
<bot>: Here is some code to apply itertools.product to elements of a list of lists `arrays`

list(itertools.product(*arrays))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.