code: def generate_cloudtrail_cloudwatch(
      cluster_name, cluster_dict, config, settings, prefix, region
  ):
      """Add the CloudTrail to CloudWatch Logs Group module to the Terraform cluster dict.
  
      Args:
          cluster_name (str): The name of the currently generating cluster
          cluster_dict (defaultdict): The dict containing all Terraform config for a given cluster.
          settings (dict): Settings for the cloudtrail module for this cluster
  
      Returns:
          bool: Result of applying the cloudtrail to cloudwatch logs module
      """
      module_info = {
          "source": "./modules/tf_cloudtrail/modules/tf_cloudtrail_cloudwatch",
          "region": region,
          "prefix": prefix,
          "cluster": cluster_name,
      }
  
      # These have defaults in the terraform module, so only override if it's set in the config
      settings_with_defaults = {
          "exclude_home_region_events",
          "retention_in_days",
      }
      for value in settings_with_defaults:
          if value in settings:
              module_info[value] = settings[value]
  
      destination_arn = settings.get("cloudwatch_destination_arn")
      if not destination_arn:
          fmt = "${{module.cloudwatch_logs_destination_{}_{}.cloudwatch_logs_destination_arn}}"
          destination_arn = fmt.format(cluster_name, region)
          if not generate_cloudwatch_destinations_internal(
              cluster_name, cluster_dict, config
          ):
              return False
  
      module_info["cloudwatch_destination_arn"] = destination_arn
  
      cluster_dict["module"][
          "cloudtrail_cloudwatch_{}".format(cluster_name)
      ] = module_info
  
      return True
  
imports: from streamalert.shared.logger import get_logger
  from streamalert_cli.terraform.cloudwatch_destinations import generate_cloudwatch_destinations_internal
  from streamalert_cli.terraform.common import s3_access_logging_bucket
  from streamalert_cli.terraform.s3_events import generate_s3_events_by_bucket
label_desc: Use image node_id 2 for calling a global function with example usage: generate_cloudtrail_cloudwatch(cluster_name, cluster_dict, config, settings, prefix, region) and returns: True, False