code: def _register_constant_handling():
      if _py_version() not in [(3, 6), (3, 7)]:
          return
  
      def as_constant(f) -> doc.Constant:
          def to_doc_func(x: ast.AST) -> doc.Constant:
              return doc.Constant(
                  value=getattr(x, f) if isinstance(f, str) else f(x),
                  kind=None,
                  s=None,
                  n=None,
                  lineno=x.lineno,
                  col_offset=x.col_offset,
                  end_lineno=x.lineno,
                  end_col_offset=x.col_offset,
              )
  
          return to_doc_func
  
      register_to_doc("Str")(as_constant("s"))
      register_to_doc("NameConstant")(as_constant("value"))
      register_to_doc("Num")(as_constant("n"))
      register_to_doc("Bytes")(as_constant("s"))
      register_to_doc("Ellipsis")(as_constant(lambda _: ...))
  
imports: import ast
  import inspect
  import sys
  import typing
  from collections import defaultdict
  from .None import doc_core
  from .doc_core import *
label_desc: Use image node_id 10 for calling a global function with example usage: _register_constant_handling() and returns: to_doc_func, doc