from typing import Dict
from typing import Any


def deep_copy(t: Dict[Any, Any]) -> Dict[Any, Any]:
    """
    Returns copy of dict `t`, following nested dict structures.
    :param t: Input dictionary
    :returns: Copied dictionary
    """
    r = {}
    for k, v in t.items():
        if isinstance(v, dict):
            r[k] = deep_copy(v)
        else:
            r[k] = v
    return r