code: def _wres(parallel, progs, fresources=None, ensure_mem=None):
      
      parallel = copy.deepcopy(parallel)
      parallel["progs"] = progs
      if fresources:
          parallel["fresources"] = fresources
      if ensure_mem:
          parallel["ensure_mem"] = ensure_mem
      return parallel
docs: Add resource information to the parallel environment on required programs and files.
  
      Enables spinning up required machines and operating in non-shared filesystem
      environments.
  
      progs -- Third party tools used in processing
      fresources -- Required file-based resources needed. These will be transferred on non-shared
                    filesystems.
      ensure_mem -- Dictionary of required minimum memory for programs used. Ensures
                    enough memory gets allocated on low-core machines.