import inspect


def _get_default_kwargs(func, start=0, remove=()):
    """
    Extract default parameters of ``func`` as a dictionary.

    Parameters
    ----------
    func : callable
        Function.

    start : int, default=0
        Ignore ``start`` first arguments.

    remove : tuple, default=()
        Remove these arguments.

    Returns
    -------
    default_params : dict
        Default ``func`` parameters.
    """
    parameters = inspect.signature(func).parameters
    default_params = {}
    for iname, (name, param) in enumerate(parameters.items()):
        if iname >= start:
            default_params[name] = param.default
    for rm in remove:
        default_params.pop(remove)
    return default_params