code: def select_option(options, message="", val=None):
      """CLI selection given options."""
  
      while val not in options:
          val = input(message)
          if val not in options:
              logger.error("Invalid choice.")
      return val
  
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 6 for calling a global function with example usage: select_option(options, message, val) and returns: val