code: def test_nlmeans_wrong():
      S0 = np.ones((2, 2, 2, 2, 2))
      assert_raises(ValueError, nlmeans, S0, 1.0)
  
      # test invalid values of num_threads
      data = np.ones((10, 10, 10))
      sigma = 1
      assert_raises(ValueError, nlmeans, data, sigma, num_threads=0)
  
file_path: dipy/dipy/denoise/tests/test_nlmeans.py
imports: from time import time
  import numpy
  from numpy.testing import assert_, assert_equal, assert_array_almost_equal, assert_raises
  import pytest
  from dipy.denoise.nlmeans import nlmeans
  from dipy.denoise.denspeed import add_padding_reflection, remove_padding
  from dipy.utils.omp import cpu_count, have_openmp
  from dipy.testing import assert_greater
  from dipy.testing.decorators import set_random_number_generator
label_desc: Use image node_id 3 for calling a global function with example usage: test_nlmeans_wrong() without return types