class_docstr: Test ability to marshall slider protos.
class_docstr_tok: ["Test","ability","to","marshall","slider","protos","."]
docstr: Test that it rejects invalid types, specifically things that are *almost* numbers
docstr_tok: ["Test","that","it","rejects","invalid","types",",","specifically","things","that","are","*","almost","*","numbers"]
code: def test_invalid_types(self, value):
      """Test that it rejects invalid types, specifically things that are *almost* numbers"""
      with pytest.raises(StreamlitAPIException):
          st.slider("the label", value=value)
  
imports: from datetime import date, datetime, time, timedelta, timezone
  from unittest.mock import MagicMock, patch
  import numpy
  import pytest
  from parameterized import parameterized
  import streamlit
  from streamlit.errors import StreamlitAPIException
  from streamlit.js_number import JSNumber
  from streamlit.proto.LabelVisibilityMessage_pb2 import LabelVisibilityMessage
  from streamlit.testing.v1.app_test import AppTest
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 4 for calling the SliderTest obj's underlying member method code with example usage: obj.test_invalid_types(value) without return types