code: def get_yes_no(question):  # pragma: no cover
      while True:
          answer = input(question + " [y/n]: ").lower()
          if "yes".startswith(answer.lower()):
              return True
          elif "no".startswith(answer.lower()):
              return False
          else:
              print("Not a valid answer.")
  
imports: import subprocess
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: get_yes_no(question) and returns: True, False