import inspect


def get_defaults(argspec: inspect.FullArgSpec) -> dict:
    """Map the arguments from the argspec to their default values."""
    if not argspec.defaults:
        return {}

    args_with_default = argspec.args[-len(argspec.defaults):]
    return {key: value for key, value in zip(
        args_with_default, argspec.defaults)}