code: def test_nice_log_error_summary():
      with pytest.raises(
          wandb.Error,
          match=r"You must call wandb.init\(\) before wandb.summary\['great'\]",
      ):
          wandb.summary["great"] = 1
      with pytest.raises(
          wandb.Error,
          match=r"You must call wandb.init\(\) before wandb.summary.bam",
      ):
          wandb.summary.bam = 1
  
imports: import pytest
  import wandb
label_desc: Use image node_id 3 for calling a global function with example usage: test_nice_log_error_summary() without return types