code: def test_bad_theme(self):
      df = px.data.gapminder().query("country=='Canada'")
      fig = px.line(
          df, x="year", y="lifeExp", title="Life expectancy in Canada"
      )
      with self.assertRaises(StreamlitAPIException) as exc:
          st.plotly_chart(fig, theme="bad_theme")
  
      self.assertEqual(
          f'You set theme="bad_theme" while Streamlit charts only support theme=”streamlit” or theme=None to fallback to the default library theme.',
          str(exc.exception),
      )
  
file_path: streamlit/lib/tests/streamlit/elements/plotly_chart_test.py
imports: from unittest import mock
  import plotly.express
  from parameterized import parameterized
  import streamlit
  from streamlit.errors import StreamlitAPIException
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 3 for calling the PyDeckTest obj's underlying member method code with example usage: obj.test_bad_theme() without return types