def METHOD_NAME(defaults, kwargs, override=False):
    """
    Set defaults from defaults dict to kwargs dict
    :param override:
    :type override:
    :param defaults:
    :type defaults:
    :param kwargs:
    :type kwargs:
    :return:
    :rtype:
    """
    if 'clear' in defaults.keys() and defaults.pop('clear'):
        kwargs.clear()
    for key, value in defaults.items():
        if key in kwargs:
            if isinstance(value, list) and isinstance(kwargs[key], list):
                kwargs[key] = list(value) + kwargs[key]
            elif isinstance(value, dict) and isinstance(kwargs[key], dict):
                METHOD_NAME(value, kwargs[key])
        if key not in kwargs or override:
            kwargs[key] = value