from typing import Callable
from typing import Any
from typing import Dict
import inspect


def _get_default_args(func: Callable[..., Any]) -> Dict[str, Any]:
    """
    Get default arguments of the given function.
    """
    return {
        k: v.default
        for k, v in inspect.signature(func).parameters.items()
        if v.default is not inspect.Parameter.empty
    }