code: def confirm(prompt, default=False, wrap=False):
      if wrap:
          prompt = wrap(prompt)
      click.echo(prompt, nl=False, err=True)
      yes_no_opts = "(Y/n)" if default else "(y/N)"
      click.echo(f" {yes_no_opts} ", nl=False, err=True)
      c = input()
      yes_vals = ["y", "yes"]
      if default:
          yes_vals.append("")
      return c.lower().strip() in yes_vals
  
imports: import functools
  import logging
  import os
  import sys
  import shutil
  import typing
  import click
  from guild import ansi_util
  from guild import config
label_desc: Use image node_id 21 for calling a global function with example usage: confirm(prompt, default, wrap) and returns: unknown