code: def test_gibbs_errors():
      assert_raises(ValueError, gibbs_removal, np.ones((2, 2, 2, 2, 2)))
      assert_raises(ValueError, gibbs_removal, np.ones(2))
      assert_raises(ValueError, gibbs_removal, np.ones((2, 2, 2)), 3)
      assert_raises(
          TypeError, gibbs_removal, image_gibbs.copy(), inplace="True"
      )
      # Test for valid num_processes
      assert_raises(
          TypeError,
          gibbs_removal,
          image_gibbs.copy(),
          num_processes="1",
      )
      assert_raises(
          ValueError, gibbs_removal, image_gibbs.copy(), num_processes=0
      )
      # Test for valid input dimensionality
      assert_raises(ValueError, gibbs_removal, np.ones(2))  # 1D
      assert_raises(ValueError, gibbs_removal, np.ones((2, 2, 2, 2, 2)))
  
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 10 for calling a global function with example usage: test_gibbs_errors() without return types