code: def test__setitem__raises_StreamlitException_with_dictionary_value(
      self,
  ):
      with pytest.raises(StreamlitAPIException):
          self.query_params["foo"] = {"test": "test"}
  
imports: import pytest
  from streamlit.errors import StreamlitAPIException
  from streamlit.runtime.state.query_params import QueryParams
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 16 for calling the QueryParamsMethodTests obj's underlying member method code with example usage: obj.test__setitem__raises_StreamlitException_with_dictionary_value() without return types