code: def flip_axis(arr, axis=0):
      """Flip contents of `axis` in array `arr`
  
      Equivalent to ``np.flip(arr, axis)``.
  
      Parameters
      ----------
      arr : array-like
      axis : int, optional
         axis to flip.  Default `axis` == 0
  
      Returns
      -------
      farr : array
         Array with axis `axis` flipped
      """
      return np.flip(arr, axis)
  
file_path: nibabel/nibabel/orientations.py
imports: import numpy
  import numpy.linalg
  from .deprecated import deprecate_with_version
label_desc: Use image node_id 5 for calling a global function with example usage: flip_axis(arr, axis) and returns: np