code: def test_ndindex_0d():
      x = list(ndindex(np.array(1).shape))
      expected = [()]
      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 2 for calling a global function with example usage: test_ndindex_0d() without return types