code: def input_bool(question, default=False):
      # type: (str, bool) -> bool
      """
      :param question: string to display
      :param default: default boolean value
      :return: return True if response is 'y'/'yes' 't'/'true' in input.lower()
      """
      while True:
          try:
              response = input("{}: ".format(question)).lower()
              if not response:
                  return default
              if response.startswith("y") or response.startswith("t"):
                  return True
              if response.startswith("n") or response.startswith("f"):
                  return False
              raise ValueError()
          except ValueError:
              print("Invalid input: please enter 'yes' or 'no'")
  
imports: from typing import Optional
label_desc: Use image node_id 3 for calling a global function with example usage: input_bool(question, default) and returns: default, True, False