class_docstr: Multidimensional index iterator.
  
  Return an iterator yielding pairs of array coordinates and values.
  
  Parameters
  ----------
  arr : ndarray
    Input array.
  
  See Also
  --------
  ndindex, flatiter
  
  Examples
  --------
  >>> a = np.array([[1, 2], [3, 4]])
  >>> for index, x in np.ndenumerate(a):
  ...     print(index, x)
  (0, 0) 1
  (0, 1) 2
  (1, 0) 3
  (1, 1) 4
class_docstr_tok: ["Multidimensional","index","iterator",".","Return","an","iterator","yielding","pairs","of","array","coordinates","and","values",".","Parameters","--","--","--","--","--","arr",":","ndarray","Input","array",".","See","Also","--","--","--","--","ndindex",",","flatiter","Examples","--","--","--","--",">",">",">","a","=","np.array","(","[","[","1",",","2","]",",","[","3",",","4","]","]",")",">",">",">","for","index",",","x","in","np.ndenumerate","(","a",")",":","...","print","(","index",",","x",")","(","0",",","0",")","1","(","0",",","1",")","2","(","1",",","0",")","3","(","1",",","1",")","4"]
docstr: Standard iterator method, returns the index tuple and array value.
  
  Returns
  -------
  coords : tuple of ints
      The indices of the current iteration.
  val : scalar
      The array element of the current iteration.
code: def __next__(self):
      """
      Standard iterator method, returns the index tuple and array value.
  
      Returns
      -------
      coords : tuple of ints
          The indices of the current iteration.
      val : scalar
          The array element of the current iteration.
  
      """
      return self.iter.coords, next(self.iter)
  
imports: from __future__ import division, absolute_import, print_function
  import functools
  import sys
  import math
  import numpy.core.numeric
  from numpy.core.numeric import asarray, ScalarType, array, alltrue, cumprod, arange, ndim
  from numpy.core.numerictypes import find_common_type, issubdtype
  import numpy.matrixlib
  from .function_base import diff
  from numpy.core.multiarray import ravel_multi_index, unravel_index
  from numpy.core.overrides import set_module
  from numpy.core import overrides, linspace
  from numpy.lib.stride_tricks import as_strided
label_desc: Use image node_id 2 for calling the ndenumerate obj's underlying member method code with example usage: obj.__next__() and returns: self,  next