class_docstr: Test ability to marshall form protos.
class_docstr_tok: ["Test","ability","to","marshall","form","protos","."]
docstr: Test that a form creates a block element with correct data.
code: def test_form_block_data(self):
      """Test that a form creates a block element with correct data."""
  
      form_data = st.form(key="bar")._form_data
      self.assertEqual("bar", form_data.form_id)
  
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 7 for calling the FormMarshallingTest obj's underlying member method code with example usage: obj.test_form_block_data() without return types