code: def array2DIndices_enumerate(arr):
          
  
          rows = arr[0]
          cols = arr[1]
          arr_index = zeros((rows * cols, 2))
          count = 0
          for row in arange(0, rows):
             for col in arange(0, cols):
                 arr_index[count] = array([row, col])
                 count = count + 1
          return arr_index
docs: DESC
              Given a 2D array defined by arr, prepare an explicit list
              of the indices.
  
          ARGS
              arr        in                 2 element array with the first
                                            element the rows and the second
                                            the cols
  
          RET
              A list of explicit 2D coordinates.