code: def test_3d_wavelets_error():
      im = np.arange(4 * 4 * 4).reshape((4, 4, 4))
      with pytest.raises(ValueError):
          mahotas.haar(im)
      with pytest.raises(ValueError):
          mahotas.ihaar(im)
      with pytest.raises(ValueError):
          mahotas.daubechies(im, "D4")
  
imports: import numpy
  import mahotas
  import mahotas.convolve
  import mahotas
  from mahotas.convolve import convolve1d, gaussian_filter
  import mahotas._filters
  from mahotas.tests.utils import luispedro_jpg
  import pytest
label_desc: Use image node_id 12 for calling a global function with example usage: test_3d_wavelets_error() without return types