def param_defaults(param, **defaults):
    """Add keys with default values if absent.

    Parameters
    ----------
    param : dict
        The dictionary of parameters.

    **defaults : keyword arguments
        The default values of the missing keys.

    Returns
    -------
    out : dict
        A shallow copy of the parameters with specified (shallow) defaults.
    """
    return {**defaults, **param}