def interleave(*args):
    result = []
    for array in zip(*args):
        result.append(tuple(flatten(array)))
    return result
Interleaves the elements of the provided arrays.
dataset/ETHPy150Open fogleman/pg/pg/util.py/interleave