code: def generate_cloudwatch_destinations(
      cluster_name, cluster_dict, config
  ):
      """Add any CloudWatch Logs destinations for explicitly specified regions
  
      These configuration options will be merged with any other options set
      for use with various other modules that utilize CloudWatch Logs destinations:
          tf_flow_logs
          tf_cloudtrail
  
      Args:
          cluster_name (str): The name of the current cluster being generated
          cluster_dict (defaultdict): The dict containing all Terraform config for
              a given cluster.
          config (dict): The loaded config from the 'conf/' directory
  
      Returns:
          bool: True if this module was applied successfully, False otherwise
      """
      cloudwatch_module = config["clusters"][cluster_name]["modules"][
          "cloudwatch_logs_destination"
      ]
      if not cloudwatch_module.get("enabled"):
          LOGGER.debug("CloudWatch destinations module is not enabled")
          return True  # not an error
  
      account_ids = cloudwatch_module.get("cross_account_ids", [])
      regions = cloudwatch_module.get("regions")
      if not regions:
          LOGGER.error(
              "CloudWatch destinations must be enabled for at "
              "least one region in the '%s' cluster",
              cluster_name,
          )
          return False
  
      return _generate(
          cluster_name, cluster_dict, config, account_ids, regions
      )
  
imports: from streamalert.shared.logger import get_logger
label_desc: Use image node_id 1 for calling a global function with example usage: generate_cloudwatch_destinations(cluster_name, cluster_dict, config) and returns: _generate, True, False