import itertools


def duplicateEachItem(bundle:list, times:int):
    """
    >>> list(duplicateEachItem([2,1,3],3))
    [2, 2, 2, 1, 1, 1, 3, 3, 3]
    """
    return itertools.chain.from_iterable([item]*times for item in bundle)