code: def test_debc017_set_item_raises_key_error():
      c1 = Component(id="1")
      c2 = Component(id="2", children=[c1])
      with pytest.raises(KeyError):
          c2["3"] = Component(id="3")
  
imports: import json
  import plotly
  import pytest
  from dash import __version__, Dash
  from dash import html
  from dash.development.base_component import Component
  from dash import dcc, Input, Output
label_desc: Use image node_id 18 for calling a global function with example usage: test_debc017_set_item_raises_key_error() without return types