def METHOD_NAME(a: dict, b: dict):
    if hasattr(a, "keys") and hasattr(b, "keys"):
        for kb in b.keys():
            if kb in a.keys():
                METHOD_NAME(a[kb], b[kb])
            else:
                a.update(b)