code: def test_nested_config_overwrite(consolidated, config):
      config.update(
          {"path": {"to": {"override": "baz", "keep": "baf"}}}
      )
      config.merge_locked(
          {"path": {"to": {"override": "bar"}}},
          "sweep",
          _allow_val_change=True,
      )
      assert dict(config) == {
          "path": {"to": {"override": "bar", "keep": "baf"}}
      }
      assert consolidated == dict(config)
  
file_path: wandb/tests/pytest_tests/unit_tests/test_wandb_config.py
imports: import pytest
  import yaml
  from wandb import wandb_sdk
label_desc: Use image node_id 16 for calling a global function with example usage: test_nested_config_overwrite(consolidated, config) without return types