code: def test_kline_base(fake_writer):
      c = (
          Kline()
          .add_xaxis(["2017/7/{}".format(i + 1) for i in range(10)])
          .add_yaxis("kline", data)
          .set_global_opts(
              yaxis_opts=opts.AxisOpts(is_scale=True),
              xaxis_opts=opts.AxisOpts(is_scale=True),
          )
      )
      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 Kline
label_desc: Use image node_id 1 for calling a global function with example usage: test_kline_base(fake_writer) without return types