code: def select_bool(message=""):
      """CLI bool selection."""
  
      options = ["y", "n"]
      message = message + " (" + "/".join(options) + ") "
      val = None
      while val not in options:
          val = input(message)
          if val not in options:
              logger.error("Input y (yes) or n (no).")
      if val == "y":
          return True
      elif val == "n":
          return False
  
file_path: image-super-resolution/ISR/utils/utils.py
imports: import os
  import argparse
  from datetime import datetime
  import numpy
  import yaml
  from ISR.utils.logger import get_logger
label_desc: Use image node_id 8 for calling a global function with example usage: select_bool(message) and returns: True, False