from typing import Dict
from typing import Any


def prefix_dict(d: Dict[str, Any], prefix: str):
    """ Prefix every key in dict `d` with `prefix`. """

    return {f"{prefix}_{k}": v for k, v in d.items()}