code: def test_set_global_opts(fake_writer):
      test_type, test_range = "test_type", [-10001, 10001]
      c = (
          Line()
          .set_global_opts(
              xaxis_opts=opts.AxisOpts(is_inverse=True),
              datazoom_opts=opts.DataZoomOpts(type_=test_type),
              visualmap_opts=opts.VisualMapOpts(
                  type_="size", range_size=test_range
              ),
          )
          .add_xaxis(["A", "B", "C"])
          .add_yaxis("series0", [1, 2, 4])
          .add_yaxis("series1", [2, 3, 6])
      )
      c.render()
      _, content = fake_writer.call_args[0]
      assert_in('"inverse": true', content)
      assert_in("test_type", content)
      assert_in("-10001", content)
  
file_path: pyecharts/test/test_line.py
imports: from unittest.mock import patch
  from nose.tools import assert_equal, assert_in
  from pyecharts import options
  from pyecharts.charts import Line
label_desc: Use image node_id 3 for calling a global function with example usage: test_set_global_opts(fake_writer) without return types