code: def ask_yesno(question: str, default: bool | None = None) -> bool:
      """Get a yes or no answer from the user."""
      yes = {"yes", "y"}
      no = {"no", "n"}
  
      print(question)
      while True:
          choice = input().lower()
          if choice == "" and default is not None:
              return default
          if choice in yes:
              return True
          if choice in no:
              return False
          print("Please respond with y/yes or n/no.")
  
imports: from __future__ import annotations
  import copy
  import itertools
  import re
  import signal
  import warnings
  from datetime import datetime
  from functools import reduce
  from typing import TYPE_CHECKING, Any, Callable, Generator, Iterable, Mapping, MutableMapping, TypeVar, cast
  from lazy_object_proxy import Proxy
  from airflow.configuration import conf
  from airflow.exceptions import AirflowException, RemovedInAirflow3Warning
  from airflow.utils.module_loading import import_string
  from airflow.utils.types import NOTSET
label_desc: Use image node_id 4 for calling a global function with example usage: ask_yesno(question, default) and returns: default, True, False