code: def write_examples_to_jsonls(examples_dict, task_data_path):
      os.makedirs(task_data_path, exist_ok=True)
      paths_dict = {}
      for phase, example_list in examples_dict.items():
          jsonl_path = os.path.join(task_data_path, f"{phase}.jsonl")
          py_io.write_jsonl(example_list, jsonl_path)
          paths_dict[phase] = jsonl_path
      return paths_dict
  
file_path: jiant/jiant/scripts/download_data/utils.py
imports: import datasets
  import os
  import tarfile
  import urllib
  import zipfile
  import jiant.utils.python.io
  from jiant.utils.python.datastructures import replace_key
label_desc: Use image node_id 2 for calling a global function with example usage: write_examples_to_jsonls(examples_dict, task_data_path) and returns: paths_dict