code: def flip_axis(x, axis):
      x = np.asarray(x).swapaxes(axis, 0)
      x = x[::-1, ...]
      x = x.swapaxes(0, axis)
      return x
  
file_path: keras-preprocessing/keras_preprocessing/image/affine_transformations.py
imports: import numpy
  from .utils import array_to_img, img_to_array
label_desc: Use image node_id 1 for calling a global function with example usage: flip_axis(x, axis) and returns: x