code: def named_aggregate_summary(series: pd.Series, key: str) -> dict:
      summary = {
          f"max_{key}": np.max(series),
          f"mean_{key}": np.mean(series),
          f"median_{key}": np.median(series),
          f"min_{key}": np.min(series),
      }
  
      return summary
  
imports: import functools
  from typing import Any, Callable, Optional, Tuple, TypeVar
  import numpy
  import pandas
  from multimethod import multimethod
  from scipy.stats import chisquare
  from ydata_profiling.config import Settings
label_desc: Use image node_id 6 for calling a global function with example usage: named_aggregate_summary(series, key) and returns: summary