def collectKwargs(label, inKwargs):
    """
    Collect kwargs of the type label_* and return them as a dict.

    Parameters
    ----------
    label: str
    inKwargs: dict

    Returns
    -------
    Dict with the collected kwargs.
    """
    outKwargs = dict()
    for key, value in inKwargs.items():
        if label + "_" in key:
            outKwargs[key.replace(label + "_", "")] = value
    return outKwargs