code: def test_nice_log_error_config():
      with pytest.raises(
          wandb.Error,
          match=r"You must call wandb.init\(\) before wandb.config.update",
      ):
          wandb.config.update({"foo": 1})
      with pytest.raises(
          wandb.Error,
          match=r"You must call wandb.init\(\) before wandb.config.foo",
      ):
          wandb.config.foo = 1
  
imports: import pytest
  import wandb
label_desc: Use image node_id 2 for calling a global function with example usage: test_nice_log_error_config() without return types