code: def test_ndindex():
      x = list(ndindex((1, 2, 3)))
      expected = [ix for ix, e in np.ndenumerate(np.zeros((1, 2, 3)))]
      assert_array_equal(x, expected)
  
imports: from dipy.core.ndindex import ndindex
  import numpy
  from numpy.testing import assert_array_equal
label_desc: Use image node_id 1 for calling a global function with example usage: test_ndindex() without return types