code: def test_flip_axis_deprecation():
      a = np.arange(24).reshape((2, 3, 4))
      axis = 1
      with pytest.deprecated_call():
          a_flipped = flip_axis(a, axis)
      assert_array_equal(a_flipped, np.flip(a, axis))
  
file_path: nibabel/nibabel/tests/test_orientations.py
imports: import warnings
  import numpy
  import pytest
  from numpy.testing import assert_array_equal
  from ..affines import from_matvec, to_matvec
  from ..orientations import OrientationError, aff2axcodes, apply_orientation, axcodes2ornt, flip_axis, inv_ornt_aff, io_orientation, ornt2axcodes, ornt_transform
  from ..testing import expires
label_desc: Use image node_id 9 for calling a global function with example usage: test_flip_axis_deprecation() without return types