code: def test_multi_slice_write():
      a = np.zeros(DATA.shape)
      write_data(a, slice_generator(DATA, axis=[0, 1]))
      assert_almost_equal(a, np.asarray(DATA))
  
file_path: nipy/nipy/core/utils/tests/test_generators.py
imports: import numpy
  import pytest
  from numpy.testing import assert_almost_equal, assert_array_equal
  from ...api import slice_generator, write_data
  from ..None import generators
label_desc: Use image node_id 4 for calling a global function with example usage: test_multi_slice_write() without return types