code: def test_scatter_multi_dimension_data(fake_writer):
      c = (
          Scatter()
          .add_xaxis(Faker.choose())
          .add_yaxis(
              "商家A",
              [list(z) for z in zip(Faker.values(), Faker.choose())],
              label_opts=opts.LabelOpts(
                  formatter=JsCode(
                      "function(params){return params.value[1] +' : '+ params.value[2];}"
                  )
              ),
          )
          .set_global_opts(
              title_opts=opts.TitleOpts(title="Scatter-多维度数据"),
              tooltip_opts=opts.TooltipOpts(
                  formatter=JsCode(
                      "function (params) {return params.name + ' : ' + params.value[2];}"
                  )
              ),
              visualmap_opts=opts.VisualMapOpts(
                  type_="color", max_=150, min_=20, dimension=1
              ),
          )
      )
      c.render()
      _, content = fake_writer.call_args[0]
      assert_equal(c.theme, "white")
      assert_equal(c.renderer, "canvas")
  
file_path: pyecharts/test/test_scatter.py
imports: import json
  from unittest.mock import patch
  from nose.tools import assert_equal, assert_in
  from pyecharts import options
  from pyecharts.charts import Scatter, Grid
  from pyecharts.commons.utils import JsCode
  from pyecharts.faker import Faker
label_desc: Use image node_id 5 for calling a global function with example usage: test_scatter_multi_dimension_data(fake_writer) without return types