code: def test_scatter3d_base(fake_writer):
      data = [
          [
              random.randint(0, 100),
              random.randint(0, 100),
              random.randint(0, 100),
          ]
          for _ in range(80)
      ]
      c = (
          Scatter3D()
          .add("", data)
          .set_global_opts(
              visualmap_opts=opts.VisualMapOpts(
                  range_color=Faker.visual_color
              )
          )
      )
      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
  from pyecharts import options
  from pyecharts.charts import Scatter3D
  from pyecharts.faker import Faker
label_desc: Use image node_id 1 for calling a global function with example usage: test_scatter3d_base(fake_writer) without return types