def flip_axis_multi(x, axis, is_random=False):
if is_random:<EOL><INDENT>factor = np.random.uniform(-<NUM_LIT:1>, <NUM_LIT:1>)<EOL>if factor > <NUM_LIT:0>:<EOL><INDENT>results = []<EOL>for data in x:<EOL><INDENT>data = np.asarray(data).swapaxes(axis, <NUM_LIT:0>)<EOL>data = data[::-<NUM_LIT:1>, ...]<EOL>data = data.swapaxes(<NUM_LIT:0>, axis)<EOL>results.append(data)<EOL><DEDENT>return np.asarray(results)<EOL><DEDENT>else:<EOL><INDENT>return np.asarray(x)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>results = []<EOL>for data in x:<EOL><INDENT>data = np.asarray(data).swapaxes(axis, <NUM_LIT:0>)<EOL>data = data[::-<NUM_LIT:1>, ...]<EOL>data = data.swapaxes(<NUM_LIT:0>, axis)<EOL>results.append(data)<EOL><DEDENT>return np.asarray(results)<EOL><DEDENT>
Flip the axises of multiple images together, such as flip left and right, up and down, randomly or non-randomly,

    Parameters
    -----------
    x : list of numpy.array
        List of images with dimension of [n_images, row, col, channel] (default).
    others : args
        See ``tl.prepro.flip_axis``.

    Returns
    -------
    numpy.array
        A list of processed images.