code: def add(self, chart, tab_name):
      chart.tab_name = tab_name
      self._charts.append(chart)
      for d in chart.js_dependencies.items:
          self.js_dependencies.add(d)
      return self
  
file_path: pyecharts/pyecharts/charts/composite_charts/tab.py
imports: import uuid
  from jinja2 import Environment
  from ...None import types
  from ...commons import utils
  from ...globals import CurrentConfig, ThemeType
  from ...options.charts_options import TabChartGlobalOpts
  from ...render import engine
  from ..mixins import CompositeMixin
label_desc: Use image node_id 2 for calling the Tab obj's underlying member method code with example usage: obj.add(chart, tab_name) and returns: self