code: def set_global_opts(
      self,
      title_opts: types.Title = opts.TitleOpts(),
      legend_opts: types.Legend = opts.LegendOpts(),
      tooltip_opts: types.Tooltip = None,
      toolbox_opts: types.Toolbox = None,
      brush_opts: types.Brush = None,
      xaxis_opts: types.Axis = None,
      yaxis_opts: types.Axis = None,
      visualmap_opts: types.VisualMap = None,
      datazoom_opts: types.DataZoom = None,
      graphic_opts: types.Graphic = None,
      axispointer_opts: types.AxisPointer = None,
  ):
      if tooltip_opts is None:
          tooltip_opts = opts.TooltipOpts(
              formatter=ToolTipFormatterType.get(self._chart_type, None)
          )
      self.options.update(
          title=title_opts,
          toolbox=toolbox_opts,
          tooltip=tooltip_opts,
          visualMap=visualmap_opts,
          dataZoom=datazoom_opts,
          graphic=graphic_opts,
          axisPointer=axispointer_opts,
      )
  
      if brush_opts is not None:
          self.options.update(brush=brush_opts)
  
      if isinstance(legend_opts, opts.LegendOpts):
          legend_opts = legend_opts.opts
      for _s in self.options["legend"]:
          # _s.update(legend_opts)
          _s.update(
              **{k: v for k, v in legend_opts.items() if v is not None}
          )
  
      if xaxis_opts and self.options.get("xAxis", None):
          if isinstance(xaxis_opts, opts.AxisOpts):
              xaxis_opts = xaxis_opts.opts
          self.options["xAxis"][0].update(xaxis_opts)
  
      if yaxis_opts and self.options.get("yAxis", None):
          if isinstance(yaxis_opts, opts.AxisOpts):
              yaxis_opts = yaxis_opts.opts
          self.options["yAxis"][0].update(yaxis_opts)
  
      return self
  
imports: from ..None import options
  from ..None import types
  from ..charts.base import Base
  from ..globals import RenderType, ThemeType, ToolTipFormatterType
  from ..types import Optional, Sequence
label_desc: Use image node_id 7 for calling the Chart obj's underlying member method code with example usage: obj.set_global_opts(title_opts, legend_opts, tooltip_opts, toolbox_opts, brush_opts, xaxis_opts, yaxis_opts, visualmap_opts, datazoom_opts, graphic_opts, axispointer_opts) and returns: self