code: def term_input(prompt: str) -> str:
      if sys.platform == "win32":
          # Important: On windows, readline is not enabled by default.  In these
          #            environment, escape sequences have been broken.  To avoid the
          #            problem, quickstart uses ``print()`` to show prompt.
          print(prompt, end="")
          return input("")
      else:
          return input(prompt)
  
imports: from __future__ import annotations
  import argparse
  import locale
  import os
  import sys
  import time
  from os import path
  from typing import TYPE_CHECKING, Any, Callable
  from docutils.utils import column_width
  import sphinx.locale
  from sphinx import __display_version__, package_dir
  from sphinx.locale import __
  from sphinx.util.console import bold, color_terminal, colorize, nocolor, red
  from sphinx.util.osutil import ensuredir
  from sphinx.util.template import SphinxRenderer
label_desc: Use image node_id 1 for calling a global function with example usage: term_input(prompt) and returns: input, input