code: def test_trace_child_model_dict(mocker):
      parent_model_dict = {"_kind": "parent"}
      child_model_dict = {"_kind": "child"}
  
      parent = Trace(name="parent", model_dict=parent_model_dict)
      child = Trace(name="child", model_dict=child_model_dict)
  
      parent.add_child(child)
  
      mock_run = mocker.MagicMock()
      mocker.patch("wandb.run", mock_run)
      mock_log = mocker.patch.object(mock_run, "log")
  
      parent.log("trace")
  
      called_model_dict = mock_log.call_args[0][0]["trace"]._model_dict
      assert called_model_dict == {
          **parent_model_dict,
          "child": child_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 28 for calling a global function with example usage: test_trace_child_model_dict(mocker) without return types