class_docstr: Because there doesn't appear to be any other Markdown-friendly
  docstring support in Python.
  
  See also:
  
    * [PEP 256](https://www.python.org/dev/peps/pep-0256/)
    * [`inspect`](https://docs.python.org/3/library/inspect.html)
      
docstr: Generate apidocs markdown for the given type definition.
  
      path_list:
  elements of a class path, as a list
  
      name:
  type name
  
      obj:
  type object
  
      returns:
  apidocs for the type, as a list of lines of markdown
          
docstr_tok: ["Generate","apidocs","markdown","for","the","given","type","definition",".","path_list",":","elements","of","a","class","path",",","as","a","list","name",":","type","name","obj",":","type","object","returns",":","apidocs","for","the","type",",","as","a","list","of","lines","of","markdown"]
code: def document_type(
      self,
      path_list: list,
      name: str,
      obj: typing.Any,
  ) -> typing.List[str]:
      """
      Generate apidocs markdown for the given type definition.
  
          path_list:
      elements of a class path, as a list
  
          name:
      type name
  
          obj:
      type object
  
          returns:
      apidocs for the type, as a list of lines of markdown
      """
      local_md: typing.List[str] = []
  
      # format a header + anchor
      frag = ".".join(path_list + [name])
      anchor = "#### [`{}` {}](#{})".format(name, "type", frag)
      local_md.append(anchor)
  
      # show type definition
      local_md.append("```python")
      local_md.append("{} = {}".format(name, obj))
      local_md.append("```")
      local_md.append("")
  
      return local_md
  
imports: from icecream import ic
  import inspect
  import os
  import re
  import sys
  import traceback
  import typing
label_desc: Use image node_id 12 for calling the PackageDoc obj's underlying member method code with example usage: obj.document_type(path_list, name, obj) and returns: local_md