class_docstr: Test ability to marshall date_input protos.
class_docstr_tok: ["Test","ability","to","marshall","date_input","protos","."]
docstr: Test a range set by session state.
docstr_tok: ["Test","a","range","set","by","session","state","."]
code: def test_range_session_state(self):
      """Test a range set by session state."""
      date_range_input = [
          datetime.today(),
          datetime.today() + timedelta(2),
      ]
      state = st.session_state
      state["date_range"] = date_range_input[:]
  
      date_range = st.date_input(
          "select a date range",
          key="date_range",
      )
  
      assert date_range == date_range_input
  
imports: from datetime import date, datetime, timedelta
  from parameterized import parameterized
  from pytest import raises
  import streamlit
  from streamlit.errors import StreamlitAPIException
  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 8 for calling the DateInputTest obj's underlying member method code with example usage: obj.test_range_session_state() without return types