class_docstr: Inject code or modify the docstring of a class, method, or function.
code: def _update_doc(self, olddoc):
      newdoc = f".. warning:: {self.kind.upper()}"
      if self.extra:
          newdoc = f"{newdoc}: {self.extra}"
      newdoc += "."
      if olddoc:
          # Get the spacing right to avoid sphinx warnings
          n_space = 4
          for li, line in enumerate(olddoc.split("\n")):
              if li > 0 and len(line.strip()):
                  n_space = len(line) - len(line.lstrip())
                  break
          newdoc = f"{newdoc}\n\n{' ' * n_space}{olddoc}"
      return newdoc
  
imports: import inspect
  import os
  import os.path
  import re
  import sys
  import webbrowser
  from copy import deepcopy
  from decorator import FunctionMaker
  from ..defaults import HEAD_SIZE_DEFAULT
  from ._bunch import BunchConst
label_desc: Use image node_id 4 for calling the _decorator obj's underlying member method code with example usage: obj._update_doc(olddoc) and returns: newdoc