code: def test_gauage_label_setting(fake_writer):
      c = Gauge().add(
          "",
          [("完成率", 66.6)],
          detail_label_opts=opts.GaugeDetailOpts(formatter="{value}"),
          title_label_opts=opts.GaugeTitleOpts(
              font_size=40, color="blue", font_family="Microsoft YaHei"
          ),
      )
      c.render()
      _, content = fake_writer.call_args[0]
      assert_in("title", content)
      assert_in("detail", content)
  
imports: from unittest.mock import patch
  from nose.tools import assert_equal, assert_in
  from pyecharts.charts import Gauge
  from pyecharts import options
label_desc: Use image node_id 2 for calling a global function with example usage: test_gauage_label_setting(fake_writer) without return types