code: def read_log(filename, run_dict=None):
      if run_dict is None:
          run_dict = dict()
  
      with open(filename) as logfile:
          for line in logfile:
              dir_name, job_name = line[:-1].split("/")
              jobs = run_dict.get(dir_name, set())
              jobs.add(job_name)
              run_dict[dir_name] = jobs
      return run_dict
  
imports: import os
  import hashlib
  import pickle
  import time
  import shutil
  import glob
  from ..interfaces.base import BaseInterface
  from ..pipeline.engine import Node
  from ..pipeline.engine.utils import modify_paths
label_desc: Use image node_id 1 for calling a global function with example usage: read_log(filename, run_dict) and returns: run_dict