code: def test_daubechies_D2_haar():
      image = luispedro_jpg(1)
      image = image[:256, :256]
      wav = mahotas.haar(image, preserve_energy=False)
      dau = mahotas.daubechies(image, "D2")
  
      assert wav.shape == dau.shape
      assert np.allclose(dau, wav)
  
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 11 for calling a global function with example usage: test_daubechies_D2_haar() without return types