code: def generate_s3_events(cluster_name, cluster_dict, config):
      """Add the S3 Events 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.
          config (dict): The loaded config from the 'conf/' directory
  
      Returns:
          bool: Result of applying the s3_events module
      """
      s3_event_buckets = config["clusters"][cluster_name]["modules"][
          "s3_events"
      ]
      generate_s3_events_by_bucket(
          cluster_name, cluster_dict, config, s3_event_buckets
      )
      return True
  
imports: import re
  from streamalert.shared.logger import get_logger
label_desc: Use image node_id 1 for calling a global function with example usage: generate_s3_events(cluster_name, cluster_dict, config) and returns: True