class_docstr: Test ability to marshall date_input protos.
class_docstr_tok: ["Test","ability","to","marshall","date_input","protos","."]
docstr: Test that it raises an exception for invalid date formats.
docstr_tok: ["Test","that","it","raises","an","exception","for","invalid","date","formats","."]
code: def test_invalid_date_format_values(self, format: str):
      """Test that it raises an exception for invalid date formats."""
      with self.assertRaises(StreamlitAPIException) as ex:
          st.date_input("the label", format=format)
      self.assertTrue(
          str(ex.exception).startswith("The provided format")
      )
  
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 13 for calling the DateInputTest obj's underlying member method code with example usage: obj.test_invalid_date_format_values(format) without return types