code: def test_generate_s3_events_with_prefix():
      """CLI - Terraform - S3 Events, With Module Prefix"""
      cluster_dict = common.infinitedict()
      bucket_config = {
          "unit-test-bucket": [
              {
                  "filter_prefix": "AWSLogs/123456789/CloudTrail/us-east-1/",
              }
          ]
      }
      s3_events.generate_s3_events_by_bucket(
          "advanced",
          cluster_dict,
          CONFIG,
          bucket_config,
          module_prefix="cloudtrail",
      )
  
      expected_config = {
          "module": {
              "cloudtrail_s3_events_unit-test_advanced_unit-test-bucket": {
                  "source": "./modules/tf_s3_events",
                  "lambda_function_alias": "${module.classifier_advanced_lambda.function_alias}",
                  "lambda_function_alias_arn": (
                      "${module.classifier_advanced_lambda.function_alias_arn}"
                  ),
                  "lambda_function_name": "${module.classifier_advanced_lambda.function_name}",
                  "bucket_name": "unit-test-bucket",
                  "lambda_role_id": "${module.classifier_advanced_lambda.role_id}",
                  "filters": [
                      {
                          "filter_prefix": "AWSLogs/123456789/CloudTrail/us-east-1/"
                      }
                  ],
              },
          }
      }
  
      assert_equal(cluster_dict, expected_config)
  
imports: from nose.tools import assert_equal
  from streamalert_cli.config import CLIConfig
  from streamalert_cli.terraform import common, s3_events
label_desc: Use image node_id 2 for calling a global function with example usage: test_generate_s3_events_with_prefix() without return types