docstr: Test that plotly object works.
docstr_tok: ["Test","that","plotly","object","works","."]
code: def test_basic(self):
      """Test that plotly object works."""
      df = px.data.gapminder().query("country=='Canada'")
      fig = px.line(
          df, x="year", y="lifeExp", title="Life expectancy in Canada"
      )
      st.plotly_chart(fig)
  
      el = self.get_delta_from_queue().new_element
      self.assertNotEqual(el.plotly_chart.figure.spec, None)
      self.assertNotEqual(el.plotly_chart.figure.config, None)
  
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 1 for calling the PyDeckTest obj's underlying member method code with example usage: obj.test_basic() without return types