def _nanargmin(x, axis, **kwargs):
    try:
        return chunk.nanargmin(x, axis, **kwargs)
    except __HOLE__:
        return chunk.nanargmin(np.where(np.isnan(x), np.inf, x), axis, **kwargs)
dataset/ETHPy150Open dask/dask/dask/array/reductions.py/_nanargmin