class_docstr: Test ability to marshall multiselect protos.
docstr: Test that valid default can be passed as expected.
docstr_tok: ["Test","that","valid","default","can","be","passed","as","expected","."]
code: def test_defaults(self, defaults, expected):
      """Test that valid default can be passed as expected."""
      st.multiselect("the label", ["Coffee", "Tea", "Water"], defaults)
  
      c = self.get_delta_from_queue().new_element.multiselect
      self.assertEqual(c.label, "the label")
      self.assertListEqual(c.default[:], expected)
      self.assertEqual(c.options, ["Coffee", "Tea", "Water"])
      self.assertEqual(c.placeholder, "Choose an option")
  
imports: from unittest.mock import MagicMock, patch
  import numpy
  import pandas
  import pytest
  from parameterized import parameterized
  import streamlit
  from streamlit.elements.widgets.multiselect import _get_default_count, _get_over_max_options_message
  from streamlit.errors import StreamlitAPIException
  from streamlit.proto.LabelVisibilityMessage_pb2 import LabelVisibilityMessage
  from streamlit.testing.v1.app_test import AppTest
  from streamlit.testing.v1.util import patch_config_options
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 9 for calling the Multiselectbox obj's underlying member method code with example usage: obj.test_defaults(defaults, expected) without return types