code: def test_swapped_gibbs_2d():
      # 2D case: In this case slice_axis is a dummy variable. Since data is
      # already a single 2D image, to axis swapping is required
      image_cor0 = gibbs_removal(
          image_gibbs, slice_axis=0, inplace=False
      )
      assert_array_almost_equal(image_cor0, image_cor)
  
      image_cor1 = gibbs_removal(
          image_gibbs, slice_axis=1, inplace=False
      )
      assert_array_almost_equal(image_cor1, image_cor)
  
      image_cor2 = gibbs_removal(
          image_gibbs, slice_axis=2, inplace=False
      )
      assert_array_almost_equal(image_cor2, image_cor)
  
file_path: dipy/dipy/denoise/tests/test_gibbs.py
imports: import numpy
  from dipy.denoise.gibbs import _gibbs_removal_1d, _gibbs_removal_2d, gibbs_removal, _image_tv
  from numpy.testing import assert_, assert_array_almost_equal, assert_raises
label_desc: Use image node_id 7 for calling a global function with example usage: test_swapped_gibbs_2d() without return types