code: def gen_key_avgs_from_dicts(obj: List) -> Dict[str, float]:
      sum_values_by_key = reduce(
          lambda x, y: dict((k, v + y.get(k, 0)) for k, v in x.items()),
          obj,
      )
      return {
          k: float(v) / len(obj) for k, v in sum_values_by_key.items()
      }
  
file_path: fklearn/src/fklearn/tuning/utils.py
imports: from typing import Any, Dict, Generator, List
  from toolz.curried import reduce, partial, pipe, first, curry
  from fklearn.metrics.pd_extractors import extract
  from fklearn.types import LogListType, LogType, ExtractorFnType, ValidatorReturnType, EvalReturnType
label_desc: Use image node_id 7 for calling a global function with example usage: gen_key_avgs_from_dicts(obj) and returns: unknown