class_docstr: A code generator which renders Python types by not adding
  ``str()`` around output nodes.
code: def _output_child_to_const(
      self,
      node: nodes.Expr,
      frame: Frame,
      finalize: CodeGenerator._FinalizeInfo,
  ) -> t.Any:
      const = node.as_const(frame.eval_ctx)
  
      if not has_safe_repr(const):
          raise nodes.Impossible()
  
      if isinstance(node, nodes.TemplateData):
          return const
  
      return finalize.const(const)
  
imports: import typing
  from ast import literal_eval
  from ast import parse
  from itertools import chain
  from itertools import islice
  from types import GeneratorType
  from .None import nodes
  from .compiler import CodeGenerator
  from .compiler import Frame
  from .compiler import has_safe_repr
  from .environment import Environment
  from .environment import Template
label_desc: Use image node_id 3 for calling the NativeCodeGenerator obj's underlying member method code with example usage: obj._output_child_to_const(node, frame, finalize) and returns: finalize, const