code: def test_trace_add_inputs_and_outputs():
      t = Trace(name="test_trace", kind="LLM", status_code="SUCCESS")
  
      inputs = {"input_key": "input_value"}
      outputs = {"output_key": "output_value"}
      t.add_inputs_and_outputs(inputs, outputs)
      assert len(t._span.results) == 1
      assert t._span.results[0].inputs == inputs
      assert t._span.results[0].outputs == outputs
  
      t.add_inputs_and_outputs(inputs, outputs)
      assert len(t._span.results) == 2
      assert t._span.results[1].inputs == inputs
      assert t._span.results[1].outputs == outputs
  
imports: import time
  import pytest
  from wandb.sdk.data_types.trace_tree import Span, SpanKind, StatusCode, Trace
label_desc: Use image node_id 5 for calling a global function with example usage: test_trace_add_inputs_and_outputs() without return types