code: def test_map_item_base(fake_writer):
      location_name = ["广东"]
      location_data = [[100, 200, 300, 400]]
      mock_data = [
          opts.MapItem(name=d[0], value=d[1])
          for d in list(zip(location_name, location_data))
      ]
  
      c = Map().add("商家A", mock_data, "china")
      c.render()
      _, content = fake_writer.call_args[0]
      assert_equal(c.theme, "white")
      assert_equal(c.renderer, "canvas")
  
file_path: pyecharts/test/test_map.py
imports: from unittest.mock import patch
  import simplejson
  from nose.tools import assert_equal
  from pyecharts import options
  from pyecharts.charts import Map
  from pyecharts.faker import Faker
label_desc: Use image node_id 2 for calling a global function with example usage: test_map_item_base(fake_writer) without return types