code: def test_get_query_params():
      def script():
          import streamlit as st
  
          st.write(st.experimental_get_query_params())
  
      at = AppTest.from_function(script).run()
      assert at.json[0].value == "{}"
      at.query_params["foo"] = 5
      at.query_params["bar"] = "baz"
      at.run()
      assert at.json[0].value == '{"foo": ["5"], "bar": ["baz"]}'
  
file_path: streamlit/lib/tests/streamlit/testing/app_test_test.py
imports: import pytest
  from streamlit.testing.v1 import AppTest
label_desc: Use image node_id 3 for calling a global function with example usage: test_get_query_params() without return types