def check_kwargs_defaults(kwargs, defaults):
    """
    Build keyword argument by changing a default set of parameters.

    Parameters
    ----------
    kwargs : dict
        Keyword arguments that are different for default values.
    defaults : dict
        The default parameter values.

    Returns
    -------
    kw : dict
        A new keyword argument.
    """
    kw = defaults.copy()
    for k, v in kwargs.items():
        kw[k] = v
    return kw