def graph_size(da: xarray.DataArray) -> int: """ Returns number of nodes in the dask graph """ return len(da.__dask_graph__())