class_docstr: Test ability to marshall title protos.
docstr: Test st.title with invalid anchor.
docstr_tok: ["Test","st.title","with","invalid","anchor","."]
code: def test_st_title_with_invalid_anchor(self):
      """Test st.title with invalid anchor."""
      with pytest.raises(
          StreamlitAPIException,
          match="Anchor parameter has invalid value:",
      ):
          st.title("some header", anchor=True)
      with pytest.raises(
          StreamlitAPIException,
          match="Anchor parameter has invalid type:",
      ):
          st.title("some header", anchor=6)
  
imports: import pytest
  import streamlit
  from streamlit.errors import StreamlitAPIException
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 4 for calling the StTitleTest obj's underlying member method code with example usage: obj.test_st_title_with_invalid_anchor() without return types