code: def _build_prompt(
      text,
      suffix,
      show_default=False,
      default=None,
      show_choices=True,
      type=None,
  ):
      prompt = text
      if type is not None and show_choices and isinstance(type, Choice):
          prompt += " ({})".format(", ".join(map(str, type.choices)))
      if default is not None and show_default:
          prompt = "{} [{}]".format(prompt, _format_default(default))
      return prompt + suffix
  
imports: import inspect
  import io
  import itertools
  import os
  import struct
  import sys
  from ._compat import DEFAULT_COLUMNS
  from ._compat import get_winterm_size
  from ._compat import isatty
  from ._compat import raw_input
  from ._compat import string_types
  from ._compat import strip_ansi
  from ._compat import text_type
  from ._compat import WIN
  from .exceptions import Abort
  from .exceptions import UsageError
  from .globals import resolve_color_default
  from .types import Choice
  from .types import convert_type
  from .types import Path
  from .utils import echo
  from .utils import LazyFile
label_desc: Use image node_id 2 for calling a global function with example usage: _build_prompt(text, suffix, show_default, default, show_choices, type) and returns: unknown