code: def visit_constant(constant):
      name, value = constant
      typename = type(value).__name__
      kind = (
          "Constant"
          if isinstance(value, (str, int, float))
          else "Object"
      )
      init = f"_def({typename}, '{name}')"
      doc = f"#: {kind} ``{name}`` of type :class:`{typename}`"
      return f"{name}: {typename} = {init}  {doc}\n"
  
imports: import os
  import sys
  import inspect
  import textwrap
label_desc: Use image node_id 11 for calling a global function with example usage: visit_constant(constant) and returns: name, str, typename, str, init, str, doc, str