def minimal_kwargs(kwargs: Dict[(Text, Any)], func: Callable, excluded_keys: Optional[List]=None) -> Dict[(Text, Any)]:
    'Returns only the kwargs which are required by a function. Keys, contained in\n    the exception list, are not included.\n\n    Args:\n        kwargs: All available kwargs.\n        func: The function which should be called.\n        excluded_keys: Keys to exclude from the result.\n\n    Returns:\n        Subset of kwargs which are accepted by `func`.\n\n    '
    excluded_keys = (excluded_keys or [])
    possible_arguments = arguments_of(func)
    return {k: v for (k, v) in kwargs.items() if ((k in possible_arguments) and (k not in excluded_keys))}
Returns only the kwargs which are required by a function. Keys, contained in
the exception list, are not included.

Args:
    kwargs: All available kwargs.
    func: The function which should be called.
    excluded_keys: Keys to exclude from the result.

Returns:
    Subset of kwargs which are accepted by `func`.
def minimal_kwargs(kwargs: Dict[(Text, Any)], func: Callable, excluded_keys: Optional[List]=None) -> Dict[(Text, Any)]:
    'Returns only the kwargs which are required by a function. Keys, contained in\n    the exception list, are not included.\n\n    Args:\n        kwargs: All available kwargs.\n        func: The function which should be called.\n        excluded_keys: Keys to exclude from the result.\n\n    Returns:\n        Subset of kwargs which are accepted by `func`.\n\n    '
    excluded_keys = (excluded_keys or [])
    possible_arguments = arguments_of(func)
    return {k: v for (k, v) in kwargs.items() if ((k in possible_arguments) and (k not in excluded_keys))}