code: def run(self):
      table_code, test_code = CodeDiffParser().parse(
          list(self.content), **self.options
      )
  
      # Create a test node as a comment node so it won't show up in the docs.
      # We add attribute "testnodetype" so it is be picked up by the doctest
      # builder. This functionality is not officially documented but can be found
      # in the source code:
      # https://github.com/sphinx-doc/sphinx/blob/3.x/sphinx/ext/doctest.py
      # (search for 'testnodetype').
      test_code = "\n".join(test_code)
      test_node = nodes.comment(
          test_code, test_code, testnodetype="testcode"
      )
      # Set the source info so the error message is correct when testing.
      self.set_source_info(test_node)
      test_node["options"] = {}
      test_node["language"] = "python3"
  
      # The table node is the side-by-side diff view that will be shown on RTD.
      table_node = nodes.paragraph()
      self.content = ViewList(table_code, self.content.parent)
      self.state.nested_parse(
          self.content, self.content_offset, table_node
      )
  
      return [table_node, test_node]
  
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 1 for calling the CodeDiffDirective obj's underlying member method code with example usage: obj.run() and returns: list