code: def load_data(log_file):
      """Loads and sorts log data or returns None."""
      data = logging.load_log_data(log_file, _DATA_TYPES_TO_SKIP)
      data = logging.sort_log_data(data)
      err_file = log_file.replace("stdout.log", "stderr.log")
      data["log_file"] = log_file
      data["err_file"] = err_file
      with open(err_file, "r") as f:
          data["err"] = f.read()
      return data
  
file_path: pycls/tools/sweep_collect.py
imports: import functools
  import json
  import multiprocessing
  import os
  import pycls.core.checkpoint
  import pycls.core.logging
  import pycls.sweep.config
  from pycls.sweep.config import sweep_cfg
label_desc: Use image node_id 1 for calling a global function with example usage: load_data(log_file) and returns: data