def createBucket(botoConnect, bucketName):
    conn = botoConnectS3(botoConnect)
    bucket = conn.lookup(bucket_name=bucketName, validate=True)
    # if found, return
    if bucket is not None:
        return
    bucket = conn.create_bucket(bucketName)
    # I would have preferred to set the CORS for the bucket we created, but
    # moto doesn't support that.
    # setBucketCors(bucket)
    return bucket
Create a bucket if it doesn't already exist.
dataset/ETHPy150Open girder/girder/tests/mock_s3.py/createBucket