code: def _create_alarm_handler(options, config):
      """Create a new CloudWatch alarm for the given metric
  
      Args:
          options (argparse.Namespace): Contains all of the necessary info for configuring
              a CloudWatch alarm
  
      Returns:
          bool: False if errors occurred, True otherwise
      """
      # Perform safety check for max total evaluation period. This logic cannot
      # be performed by argparse so must be performed now.
      seconds_in_day = 86400
      if options.period * options.evaluation_periods > seconds_in_day:
          LOGGER.error(
              "The product of the value for period multiplied by the "
              "value for evaluation periods cannot exceed 86,400. 86,400 "
              "is the number of seconds in one day and an alarm's total "
              "current evaluation period can be no longer than one day."
          )
          return False
  
      return config.add_metric_alarm(vars(options))
  
file_path: streamalert/streamalert_cli/metrics_alarms/handler.py
imports: from streamalert.shared import metrics, CLUSTERED_FUNCTIONS
  from streamalert.shared.logger import get_logger
  from streamalert_cli.utils import add_clusters_arg, CLICommand, set_parser_epilog
label_desc: Use image node_id 2 for calling a global function with example usage: _create_alarm_handler(options, config) and returns: config, False