code: def test_vertical_bar():
      fig, ax = plt.subplots()
      ax.bar(left=D["left"], height=D["height"])
      renderer = run_fig(fig)
  
      for data_no, data_dict in enumerate(renderer.plotly_fig["data"]):
          d1, d2 = strip_dict_params(
              data_dict, VERTICAL_BAR["data"][data_no], ignore=["uid"]
          )
  
          equivalent, msg = compare_dict(d1, d2)
          assert equivalent, msg
  
      equivalent, msg = compare_dict(
          renderer.plotly_fig["layout"], VERTICAL_BAR["layout"]
      )
      assert equivalent, msg
  
file_path: plotly.py/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_bars.py
imports: import pytest
  from plotly import optional_imports
  from plotly.tests.utils import compare_dict, strip_dict_params
  from plotly.tests.test_optional.optional_utils import run_fig
  from plotly.tests.test_optional.test_matplotlylib.data.bars import *
label_desc: Use image node_id 1 for calling a global function with example usage: test_vertical_bar() without return types