docstr: Tests that when the value type is invalid, an exception is generated
docstr_tok: ["Tests","that","when","the","value","type","is","invalid",",","an","exception","is","generated"]
code: def test_invalid_value_type_error(self):
      """Tests that when the value type is invalid, an exception is generated"""
      with pytest.raises(StreamlitAPIException) as exc_message:
          st.color_picker("the label", 1234567)
  
file_path: streamlit/lib/tests/streamlit/elements/color_picker_test.py
imports: from unittest.mock import MagicMock, patch
  import pytest
  from parameterized import parameterized
  import streamlit
  from streamlit.errors import StreamlitAPIException
  from streamlit.proto.LabelVisibilityMessage_pb2 import LabelVisibilityMessage
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 4 for calling the ColorPickerTest obj's underlying member method code with example usage: obj.test_invalid_value_type_error() without return types