code: def put_mock_s3_object(bucket, key, data, region="us-east-1"):
      """Create a mock AWS S3 object for testing
  
      Args:
          bucket (str): the bucket in which to place the object
          key (str): the key to use for the S3 object
          data (str): the actual value to use for the object
          region (str): the aws region to use for this boto3 client
      """
      try:
          AwsS3.head_bucket(bucket, region=region)
      except ClientError:
          AwsS3.create_bucket(bucket, region=region)
  
      AwsS3.put_object(data, bucket=bucket, key=key, region=region)
  
imports: from datetime import datetime
  import uuid
  from io import BytesIO
  import zipfile
  import boto3
  from botocore.exceptions import ClientError
  from streamalert.shared.helpers.aws_api_client import AwsS3
label_desc: Use image node_id 6 for calling a global function with example usage: put_mock_s3_object(bucket, key, data, region) without return types