class_docstr: Test form submit button.
class_docstr_tok: ["Test","form","submit","button","."]
docstr: Test that a submit button is not allowed outside a form.
code: def test_submit_button_outside_form(self):
      """Test that a submit button is not allowed outside a form."""
  
      with self.assertRaises(StreamlitAPIException) as ctx:
          st.form_submit_button()
  
      self.assertIn(
          "`st.form_submit_button()` must be used inside an `st.form()`",
          str(ctx.exception),
      )
  
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 2 for calling the FormSubmitButtonTest obj's underlying member method code with example usage: obj.test_submit_button_outside_form() without return types