code: def test_trace_model_dict(mocker):
      model_dict = {"_kind": "test_model"}
      t = Trace(name="test", model_dict=model_dict)
  
      mock_run = mocker.MagicMock()
      mocker.patch("wandb.run", mock_run)
      mock_log = mocker.patch.object(mock_run, "log")
  
      t.log("trace")
  
      called_model_dict = mock_log.call_args[0][0]["trace"]._model_dict
      assert called_model_dict == model_dict
  
imports: import time
  import pytest
  from wandb.sdk.data_types.trace_tree import Span, SpanKind, StatusCode, Trace
label_desc: Use image node_id 27 for calling a global function with example usage: test_trace_model_dict(mocker) without return types