code: def test_log_avoids_mutation(mock_run):
      run = mock_run()
      d = dict(this=1)
      run.log(d)
      assert d == dict(this=1)
  
imports: import copy
  import os
  import platform
  import unittest.mock
  import numpy
  import pytest
  import wandb
  import wandb.errors
  from wandb import wandb_sdk
label_desc: Use image node_id 2 for calling a global function with example usage: test_log_avoids_mutation(mock_run) without return types