code: def test_nlmeans_wrong():
      S0 = 100 + np.zeros((10, 10, 10, 10, 10))
      assert_raises(ValueError, non_local_means, S0, 1.0)
      S0 = 100 + np.zeros((20, 20, 20))
      mask = np.ones((10, 10))
      assert_raises(ValueError, non_local_means, S0, 1.0, mask)
  
file_path: dipy/dipy/denoise/tests/test_non_local_means.py
imports: import numpy
  from numpy.testing import assert_, assert_equal, assert_array_almost_equal, assert_raises
  from dipy.denoise.non_local_means import non_local_means
  from dipy.testing.decorators import set_random_number_generator
label_desc: Use image node_id 5 for calling a global function with example usage: test_nlmeans_wrong() without return types