code: def test_build_laplacian_pyramid_nd():
      for ndim in [1, 2, 3, 4]:
          img = np.random.randn(*(16,) * ndim)
          original_shape = np.asarray(img.shape)
          pyramid = pyramids.pyramid_laplacian(
              img, downscale=2, channel_axis=None
          )
          for layer, out in enumerate(pyramid):
              layer_shape = original_shape / 2**layer
              assert_array_equal(out.shape, layer_shape)
  
imports: import math
  import pytest
  import numpy
  from numpy.testing import assert_almost_equal, assert_array_equal, assert_equal
  from skimage import data
  from skimage._shared.utils import _supported_float_type
  from skimage.transform import pyramids
label_desc: Use image node_id 14 for calling a global function with example usage: test_build_laplacian_pyramid_nd() without return types