class_docstr: A stripped-down handler similar to CodeHandler but that does
  some appropriate monkeypatching.
class_docstr_tok: ["A","stripped-down","handler","similar","to","CodeHandler","but","that","does","some","appropriate","monkeypatching","."]
code: def _unmonkeypatch(self, old_io, old_doc):
      import bokeh.io as io  # lgtm [py/import-and-import-from]
      import bokeh.plotting as p
  
      mods = [io, p]
  
      for mod in mods:
          for f in old_io:
              setattr(mod, f, old_io[f])
  
      import bokeh.document as d
  
      d.Document = old_doc
  
file_path: bokeh/src/bokeh/sphinxext/example_handler.py
imports: from __future__ import annotations
  import logging
  from typing import TYPE_CHECKING
  from bokeh.application.handlers.code_runner import CodeRunner
  from bokeh.application.handlers.handler import Handler
  from bokeh.core.types import PathLike
  from bokeh.io.doc import curdoc, set_curdoc
label_desc: Use image node_id 4 for calling the ExampleHandler obj's underlying member method code with example usage: obj._unmonkeypatch(old_io, old_doc) without return types