code: def test_smoke():
      def script():
          import streamlit as st
  
          st.radio("radio", options=["a", "b", "c"], key="r")
          st.radio("default index", options=["a", "b", "c"], index=2)
  
      at = AppTest.from_function(script).run()
      assert at.radio
      assert at.radio[0].value == "a"
      assert at.radio(key="r").value == "a"
      assert at.radio.values == ["a", "c"]
  
      r = at.radio[0].set_value("b")
      assert r.index == 1
      assert r.value == "b"
      at = r.run()
      assert at.radio[0].value == "b"
      assert at.radio.values == ["b", "c"]
  
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 1 for calling a global function with example usage: test_smoke() without return types