def METHOD_NAME(a, b):
    for kb in b:
        if kb in a:
            va = a[kb]
            vb = b[kb]
            if isinstance(va, dict) and isinstance(vb, dict):
                METHOD_NAME(va, vb)
            else:
                a[kb] = b[kb]
        else:
            a[kb] = b[kb]