def METHOD_NAME(event, match=None):
    if match is None:
        return True
    for key in match:
        if key in event:
            if isinstance(event[key], dict):
                if not METHOD_NAME(event[key], match[key]):
                    return False
            elif event[key] != match[key]:
                return False
        else:
            return False
    return True