class_docstr: Test ability to marshall bokeh_chart protos.
docstr: Test that it can be called with figure.
docstr_tok: ["Test","that","it","can","be","called","with","figure","."]
code: def test_figure(self):
      """Test that it can be called with figure."""
      plot = figure()
      plot.line([1], [1])
      st.bokeh_chart(plot)
  
      c = self.get_delta_from_queue().new_element.bokeh_chart
      self.assertEqual(hasattr(c, "figure"), True)
  
file_path: streamlit/lib/tests/streamlit/elements/bokeh_test.py
imports: from unittest.mock import patch
  from bokeh.plotting import figure
  import streamlit
  from streamlit.errors import StreamlitAPIException
  from tests.delta_generator_test_case import DeltaGeneratorTestCase
label_desc: Use image node_id 1 for calling the BokehTest obj's underlying member method code with example usage: obj.test_figure() without return types