code: def test_nice_log_error():
      with pytest.raises(wandb.Error):
          wandb.log({"no": "init"})
  
imports: import pytest
  import wandb
label_desc: Use image node_id 1 for calling a global function with example usage: test_nice_log_error() without return types