def METHOD_NAME(work_dir, run_key, r):
    run_dir = work_dir.joinpath(run_key)
    workloads = get_workloads(run_dir)
    workload_results = functools.reduce(lambda r, w: analyze_workload(run_dir, w, r), workloads, {})
    r[run_key] = workload_results
    return r