code: def test_pie_base(fake_writer):
      c = (
          Pie()
          .add(
              "", [list(z) for z in zip(Faker.choose(), Faker.values())]
          )
          .set_series_opts(
              label_opts=opts.LabelOpts(formatter="{b}: {c}")
          )
      )
      c.render()
      _, content = fake_writer.call_args[0]
      assert_equal(c.theme, "white")
      assert_equal(c.renderer, "canvas")
  
imports: from unittest.mock import patch
  from nose.tools import assert_equal, assert_in
  from pyecharts import options
  from pyecharts.charts import Pie
  from pyecharts.faker import Faker
label_desc: Use image node_id 1 for calling a global function with example usage: test_pie_base(fake_writer) without return types