The Dask wrapper function
If arg use_dask = True and arg nout is provided, then function is run with dask.delayed. Else, it is executed in serial as normal.