code: def write_preds(eval_results_dict, path):
      preds_dict = {}
      for task_name, task_results_dict in eval_results_dict.items():
          preds_dict[task_name] = {
              "preds": task_results_dict["preds"],
              "guids": task_results_dict["accumulator"].get_guids(),
          }
      torch.save(preds_dict, path)
  
imports: import json
  import os
  import torch
  import jiant.utils.python.io
  import jiant.proj.main.components.task_sampler
label_desc: Use image node_id 2 for calling a global function with example usage: write_preds(eval_results_dict, path) without return types