class_docstr: Test ability to marshall checkbox protos.
class_docstr_tok: ["Test","ability","to","marshall","checkbox","protos","."]
docstr: Test that the usage of `st.toggle` uses the correct checkbox proto config.
docstr_tok: ["Test","that","the","usage","of","`","st.toggle","`","uses","the","correct","checkbox","proto","config","."]
code: def test_toggle_widget(self):
      """Test that the usage of `st.toggle` uses the correct checkbox proto config."""
      st.toggle("the label")
  
      c = self.get_delta_from_queue().new_element.checkbox
      self.assertEqual(c.label, "the label")
      self.assertEqual(c.default, False)
      self.assertEqual(c.disabled, False)
      self.assertEqual(
          c.label_visibility.value,
          LabelVisibilityMessage.LabelVisibilityOptions.VISIBLE,
      )
      self.assertEqual(c.type, CheckboxProto.StyleType.TOGGLE)
  
imports: from unittest.mock import MagicMock, patch
  from parameterized import parameterized
  import streamlit
  from streamlit.errors import StreamlitAPIException
  from streamlit.proto.Checkbox_pb2 import Checkbox
  from streamlit.proto.LabelVisibilityMessage_pb2 import LabelVisibilityMessage
  from streamlit.type_util import _LOGGER
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 10 for calling the CheckboxTest obj's underlying member method code with example usage: obj.test_toggle_widget() without return types