code: def test_trace_creation_with_optional_arguments():
      t = Trace(
          name="test_trace",
          kind="LLM",
          status_code="SUCCESS",
          status_message="Trace completed successfully",
          metadata={"key": "value"},
          start_time_ms=1000,
          end_time_ms=2000,
          inputs={"input_key": "input_value"},
          outputs={"output_key": "output_value"},
          model_dict={"_kind": "openai", "api_type": "azure"},
      )
      assert isinstance(t._span, Span)
      assert t._span.name == "test_trace"
      assert t._span.span_kind == SpanKind.LLM
      assert t._span.status_code == StatusCode.SUCCESS
      assert t._span.status_message == "Trace completed successfully"
      assert t._span.attributes == {"key": "value"}
      assert t._span.start_time_ms == 1000
      assert t._span.end_time_ms == 2000
      assert len(t._span.results) == 1
      assert t._span.results[0].inputs == {"input_key": "input_value"}
      assert t._span.results[0].outputs == {
          "output_key": "output_value"
      }
      assert t._model_dict == {"_kind": "openai", "api_type": "azure"}
  
imports: import time
  import pytest
  from wandb.sdk.data_types.trace_tree import Span, SpanKind, StatusCode, Trace
label_desc: Use image node_id 6 for calling a global function with example usage: test_trace_creation_with_optional_arguments() without return types