code: def visit_notebook_node(self, node):
      if "html" in node.get("format", "").split():
          t = (
              isinstance(node.parent, nodes.TextElement)
              and "span"
              or "div"
          )
          if node["classes"]:
              self.body.append(self.starttag(node, t, suffix=""))
          self.body.append(node.astext())
          if node["classes"]:
              self.body.append("</%s>" % t)
          # Keep non-HTML raw text out of output:
      raise nodes.SkipNode
  
file_path: glow/docs/extensions/notebook.py
imports: from docutils import nodes
  from docutils.parsers import rst
  from docutils.parsers.rst import directives
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: visit_notebook_node(node) without return types