<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def collect(context=None, style=None, palette=None, **kwargs):
 """Returns the merged rcParams dict of the specified context, style, and palette. Parameters context: str style: str palette: str kwargs: - Returns ------- rcParams: dict The merged parameter dicts of the specified context, style, and palette. Notes ----- The rcParams dicts are loaded and updated in the order: context, style, palette. That means if a context parameter is also defined in the style or palette dict, it will be overwritten. There is currently no checking being done to avoid this. """

    params = {}
    if context:
        params.update(get(context, 'context', **kwargs))
    if style:
        params.update(get(style, 'style', **kwargs))
    if palette:
        params.update(get(palette, 'palette', **kwargs))
    return params