code: def test_tree_options(fake_writer):
      c = Tree().add(
          series_name="tree",
          data=TEST_DATA,
          orient="BT",
          initial_tree_depth=1,
          label_opts=opts.LabelOpts(),
          leaves_label_opts=opts.LabelOpts(),
      )
      c.render()
      _, content = fake_writer.call_args[0]
      assert_in("orient", content)
      assert_in("initialTreeDepth", content)
      assert_in("label", content)
      assert_in("leaves", content)
  
imports: from unittest.mock import patch
  from nose.tools import assert_equal, assert_in
  from pyecharts import options
  from pyecharts.charts import Tree
label_desc: Use image node_id 3 for calling a global function with example usage: test_tree_options(fake_writer) without return types