def METHOD_NAME(channel_first, length, batch_size):
    """ gets overlapping sequences, starting at iteration number """
    source = frames_fchw if channel_first else frames_fhwc
    N = source.shape[0]
    def get_seq(id):
        ret = []
        for k in range(length):
            i = (id + k) % N
            ret.append(source[i])
        return np.array(ret)
    def get_batch(iter):
        return [get_seq(iter * batch_size + i) for i in range(batch_size)]
    return get_batch