code: def yes_or_no(prompt: str) -> bool:
      """Get a yes or no answer from the CLI user."""
      yes = ("y", "yes")
      no = ("n", "no")
      try:
          while True:
              choice = (
                  input(prompt + " [{}/{}]: ".format(yes[0], no[0]))
                  .strip()
                  .lower()
              )
              if choice in yes:
                  return True
              if choice in no:
                  return False
              print(
                  "Please respond with {} or {}".format(
                      "/".join("'{}'".format(y) for y in yes),
                      "/".join("'{}'".format(n) for n in no),
                  )
              )
      except KeyboardInterrupt:
          # Add a newline to mimic a return when sending normal inputs.
          print()
          return False
  
imports: import csv
  import inspect
  import json
  import os
  import pathlib
  import sys
  from datetime import timezone
  from typing import Any, Dict, Iterable, List, Optional, Sequence, TextIO, Union
  import dateutil.parser
  import tabulate
  import termcolor
  from determined import util
  from determined.common import util
  from determined.experimental import Model, Project
label_desc: Use image node_id 11 for calling a global function with example usage: yes_or_no(prompt) and returns: False, True, False