def cartesian_t(iterables, repeat):
    """
    Transformation for Sequence.cartesian
    :param iterables: elements for cartesian product
    :param repeat: how many times to repeat iterables
    :return: transformation
    """
    return Transformation(
        'cartesian',
        lambda sequence: product(sequence, *iterables, repeat=repeat),
        None
    )