it seems we don't need to import itertools first before the line "from
intertools import..."