code: def confirm(statement: str) -> bool:
      """Ask the user for confirmation about the specified statement.
  
      Args:
          statement (unicode): statement to ask the user confirmation about.
  
      Returns:
          bool: whether or not specified statement was confirmed.
      """
      prompt = f"{statement} [y/n]"
      answer = ask(prompt, limited_to=["yes", "no", "y", "n"])
      return answer and answer.startswith("y")
  
imports: from getpass import getpass
  from typing import Collection, Optional
  from dvc.log import logger
label_desc: Use image node_id 2 for calling a global function with example usage: confirm(statement) and returns: unknown