code: def test_cube_decomposition(function, size, decomposition):
      """Validate footprint decomposition for various shapes.
  
      comparison is made to the case without decomposition.
      """
      footprint_ndarray = footprints.cube(size, decomposition=None)
      footprint = footprints.cube(size, decomposition=decomposition)
      img = _get_decomp_test_data(function, ndim=3)
      func = getattr(binary, function)
      expected = func(img, footprint=footprint_ndarray)
      out = func(img, footprint=footprint)
      assert_array_equal(expected, out)
  
imports: import numpy
  import pytest
  from numpy.testing import assert_array_equal, assert_equal
  from scipy import ndimage
  from skimage import data, color, morphology
  from skimage.util import img_as_bool
  from skimage.morphology import binary, footprints, gray
label_desc: Use image node_id 13 for calling a global function with example usage: test_cube_decomposition(function, size, decomposition) without return types