code: def get_mean_of_recent_values(
      values: Dict[str, List[float]], min_window_size=10
  ) -> Dict[str, float]:
      ret = {}
      for key, vals in values.items():
          window_size = max(min_window_size, int(ceil(0.1 * len(vals))))
          ret[key] = np.mean(vals[-window_size:])
      return ret
  
imports: import logging
  from math import ceil
  from typing import Dict, List
  import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: get_mean_of_recent_values(values, min_window_size) and returns: ret