code: def compute_writer_results(results):
      
      if not results:
          return
  
      sources, targets, delayeds = split_results(results)
  
      # one or more writers have targets that we need to close in the future
      if targets:
          delayeds.append(da.store(sources, targets, compute=False))
  
      if delayeds:
          da.compute(delayeds)
  
      if targets:
          for target in targets:
              if hasattr(target, 'close'):
                  target.close()
docs: Compute all the given dask graphs `results` so that the files are
      saved.
  
      Args:
          results (iterable): Iterable of dask graphs resulting from calls to
                              `scn.save_datasets(..., compute=False)`