def user_s3_bucket(canonical_user_id=None):
s3 = _s3_resource()<EOL>if not canonical_user_id:<EOL><INDENT>canonical_user_id = _get_canonical_aws_user_id(s3)<EOL><DEDENT>s3_bucket_name = "<STR_LIT>".format(<EOL>hashlib.sha256(canonical_user_id.encode("<STR_LIT:utf8>")).hexdigest()[<NUM_LIT:0>:<NUM_LIT:8>]<EOL>)<EOL>return _get_or_create_s3_bucket(s3, s3_bucket_name)<EOL>
Get the user's S3 bucket.