code: def test_exception_for_callbacks_on_widgets(self):
      with self.assertRaises(StreamlitAPIException):
          with st.form("form"):
              st.radio(
                  "radio", ["a", "b", "c"], 0, on_change=lambda x: x
              )
              st.form_submit_button()
  
imports: from unittest.mock import MagicMock, patch
  import streamlit
  from streamlit.errors import StreamlitAPIException
  from streamlit.runtime.state.session_state import RegisterWidgetResult
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 1 for calling the FormStateInteractionTest obj's underlying member method code with example usage: obj.test_exception_for_callbacks_on_widgets() without return types