class_docstr: Griffe extension to insert a table of processor priority in specified functions. 
class_docstr_tok: ["Griffe","extension","to","insert","a","table","of","processor","priority","in","specified","functions","."]
docstr: Add table to specified function docstrings.
docstr_tok: ["Add","table","to","specified","function","docstrings","."]
code: def on_function_instance(
      self, node: ast.AST | ObjectNode, func: Function
  ) -> None:  # noqa: ARG002
      """Add table to specified function docstrings."""
      if self.paths and func.path not in self.paths:
          return  # skip objects that were not selected
  
      # Table header
      data = [
          "Class Instance | Name | Priority",
          "-------------- | ---- | :------:",
      ]
  
      # Extract table body from source code of function.
      for obj in node.body:
          # Extract the arguments passed to `util.Registry.register`.
          if (
              isinstance(obj, ast.Expr)
              and isinstance(obj.value, ast.Call)
              and obj.value.func.attr == "register"
          ):
              _args = obj.value.args
              cls = self.linked_obj(
                  _args[0].func.id, func.path.rsplit(".", 1)[0]
              )
              name = _args[1].value
              priority = str(_args[2].value)
              if func.name == ("build_inlinepatterns"):
                  # Include Pattern: first arg passed to class
                  if isinstance(_args[0].args[0], ast.Constant):
                      # Pattern is a string
                      value = f'`"{_args[0].args[0].value}"`'
                  else:
                      # Pattern is a variable
                      value = self.linked_obj(
                          _args[0].args[0].id,
                          func.path.rsplit(".", 1)[0],
                      )
                  cls = f"{cls}({value})"
              data.append(f"{cls} | `{name}` | `{priority}`")
  
      table = "\n".join(data)
      body = (
          f"Return a [`{func.returns.canonical_name}`][{func.returns.canonical_path}] instance which contains "
          "the following collection of classes with their assigned names and priorities.\n\n"
          f"{table}"
      )
  
      # Add to docstring.
      if not func.docstring:
          func.docstring = Docstring("", parent=func)
      sections = func.docstring.parsed
      sections.append(
          DocstringSectionText(body, title="Priority Table")
      )
  
file_path: markdown/scripts/griffe_extensions.py
imports: from __future__ import annotations
  import ast
  from typing import TYPE_CHECKING
  import textwrap
  from griffe import Docstring, Extension
  from griffe.docstrings.dataclasses import DocstringSectionAdmonition, DocstringSectionText
label_desc: Use image node_id 3 for calling the PriorityTableExtension obj's underlying member method code with example usage: obj.on_function_instance(node, func) without return types