code: def _tabs(self, *contents: Tuple[str, List[str]], sync):
      output = [".. tab-set::"] + ["  "]
  
      for title, content in contents:
          output += [f"  .. tab-item:: {title}"]
  
          if sync:
              key = title.strip()
              output += [f"    :sync: {key}"]
  
          output += ["    "]
          output += ["    " + line for line in content]
  
      return output
  
file_path: flax/docs/_ext/codediff.py
imports: from typing import List, Tuple
  import sphinx
  from docutils import nodes
  from docutils.parsers.rst import directives
  from docutils.statemachine import ViewList
  from sphinx.util.docutils import SphinxDirective
label_desc: Use image node_id 3 for calling the CodeDiffParser obj's underlying member method code with example usage: obj._tabs() and returns: output