code: def parse_config_for_previous_run(run_dir):
      with open(os.path.join(run_dir, "submit_config.pkl"), "rb") as f:
          data = pickle.load(f)
      data = data.get("run_func_kwargs", {})
      return dict(train=data, dataset=data.get("dataset_args", {}))
  
file_path: insightface/reconstruction/ostec/external/stylegan2/training/misc.py
imports: import os
  import pickle
  import numpy
  import PIL.Image
  import PIL.ImageFont
  import dnnlib
label_desc: Use image node_id 9 for calling a global function with example usage: parse_config_for_previous_run(run_dir) and returns: dict