Updates `kwargs` with dict of `defaults`

    Args:
        defaults: A dictionary of keys and values
        **kwargs: The kwargs to update.

    Returns:
        The updated kwargs.

def add_defaults_to_kwargs(defaults, **kwargs):
    """Updates `kwargs` with dict of `defaults`

    Args:
        defaults: A dictionary of keys and values
        **kwargs: The kwargs to update.

    Returns:
        The updated kwargs.
    """
    defaults = dict(defaults)
    defaults.update(kwargs)
    return defaults