code: def parse(self, rst_text, annotation):
      result = ViewList()
      for line in rst_text.split("\n"):
          result.append(line, annotation)
      node = nodes.paragraph()
      node.document = self.state.document
      nested_parse_with_titles(self.state, result, node)
      return node.children
  
file_path: bokeh/src/bokeh/sphinxext/bokeh_directive.py
imports: from __future__ import annotations
  import logging
  import re
  from docutils import nodes
  from docutils.statemachine import ViewList
  from sphinx.util.docutils import SphinxDirective
  from sphinx.util.nodes import nested_parse_with_titles
label_desc: Use image node_id 1 for calling the BokehDirective obj's underlying member method code with example usage: obj.parse(rst_text, annotation) and returns: node