code: def extract_base_iteration(result, extractor):
      extracted_results = pd.concat(
          list(map(extractor, result["eval_results"]))
      )
      repeat_fn = repeat_split_log(results_len=len(extracted_results))
  
      keys = result["split_log"].keys()
      assignments = {k: repeat_fn(result["split_log"][k]) for k in keys}
  
      return extracted_results.assign(
          fold_num=result["fold_num"]
      ).assign(**assignments)
  
imports: import collections.abc
  from datetime import datetime
  from itertools import chain, repeat
  import pandas
  from toolz import curry
  from numpy import nan
label_desc: Use image node_id 10 for calling a global function with example usage: extract_base_iteration(result, extractor) and returns: extracted_results