code: def test_treemap_levels_options(fake_writer):
      c = TreeMap().add(
          "演示数据",
          example_data,
          width="90%",
          height="100%",
          roam=False,
          levels=opts.TreeMapLevelsOpts(),
      )
      c.render()
      _, content = fake_writer.call_args[0]
      assert_in("levels", content)
  
imports: from unittest.mock import patch
  from nose.tools import assert_equal, assert_in
  from pyecharts import options
  from pyecharts.charts import TreeMap
label_desc: Use image node_id 3 for calling a global function with example usage: test_treemap_levels_options(fake_writer) without return types