code: def test_bar_item_base(fake_writer):
      x_axis = ["A", "B", "C"]
      bar_item_1 = [
          opts.BarItem(name=d[0], value=d[1])
          for d in list(zip(x_axis, [1, 2, 3]))
      ]
      bar_item_2 = [
          opts.BarItem(name=d[0], value=d[1])
          for d in list(zip(x_axis, [4, 5, 6]))
      ]
  
      c = (
          Bar()
          .add_xaxis(x_axis)
          .add_yaxis("series0", bar_item_1)
          .add_yaxis("series1", bar_item_2)
      )
      c.render()
      _, content = fake_writer.call_args[0]
      assert_greater(len(content), 2000)
      assert_equal(c.theme, "white")
      assert_equal(c.renderer, "canvas")
  
imports: import re
  import sys
  from io import StringIO
  from test import stdout_redirect
  from unittest.mock import patch
  from nose.tools import assert_equal, assert_greater, assert_in, assert_not_in
  from pyecharts import options
  from pyecharts.charts import Bar
  from pyecharts.commons.utils import JsCode
  from pyecharts.globals import CurrentConfig, NotebookType, ThemeType
  from pyecharts.render.display import HTML
label_desc: Use image node_id 2 for calling a global function with example usage: test_bar_item_base(fake_writer) without return types