code: def test_locked_set_attr(consolidated, config):
      config.update_locked(dict(this=2, that=4), "sweep")
      config.this = 8
      assert config.this == 2
      assert config.that == 4
      assert dict(config) == dict(this=2, that=4)
      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 6 for calling a global function with example usage: test_locked_set_attr(consolidated, config) without return types