code: def test_wavelet_iwavelet():
      f = luispedro_jpg(1)
      f = f[:256, :256]
      fo = f.copy()
      D4 = np.array(
          [0.6830127, 1.1830127, 0.3169873, -0.1830127],
          dtype=np.float32,
      )
      D4_high = D4[::-1].copy()
      D4_high[1::2] *= -1
      f = f[34]
      low = np.convolve(f, D4)
      high = np.convolve(f, D4_high)
      low[::2] = 0
      high[::2] = 0
      rec = np.convolve(high, D4_high[::-1]) + np.convolve(
          low, D4[::-1]
      )
      rec /= 2
      f2 = np.array([f])
      mahotas._convolve.wavelet(f2, D4)
  
      hand = np.concatenate((low[3::2], high[3::2]))
      wav = f2.ravel()
      assert np.allclose(hand, wav)
      mahotas._convolve.iwavelet(f2, D4)
      assert np.allclose(rec[3:-3], f)
      assert np.allclose(f2.ravel()[3:-3], f[3:-3])
  
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 15 for calling a global function with example usage: test_wavelet_iwavelet() without return types