code: def test_bar3d_base(fake_writer):
      data = [
          (i, j, random.randint(0, 12))
          for i in range(6)
          for j in range(24)
      ]
      c = (
          Bar3D()
          .add(
              "",
              [[d[1], d[0], d[2]] for d in data],
              xaxis3d_opts=opts.Axis3DOpts(
                  Faker.clock, type_="category"
              ),
              yaxis3d_opts=opts.Axis3DOpts(
                  Faker.week_en, type_="category"
              ),
              zaxis3d_opts=opts.Axis3DOpts(type_="value"),
          )
          .set_global_opts(visualmap_opts=opts.VisualMapOpts(max_=20))
      )
      c.render()
      _, content = fake_writer.call_args[0]
      assert_equal(c.theme, "white")
      assert_equal(c.renderer, "canvas")
  
imports: import random
  from unittest.mock import patch
  from nose.tools import assert_equal, assert_in
  from pyecharts import options
  from pyecharts.charts import Bar3D
  from pyecharts.faker import Faker
label_desc: Use image node_id 1 for calling a global function with example usage: test_bar3d_base(fake_writer) without return types