elser-ingest-speedtest/_support/google-storage-uploader.py (5 lines of code) (raw):
# Imports the Google Cloud client library
from google.cloud import storage
# Instantiates a client
storage_client = storage.Client()
# The name for the new bucket
bucket_name = "ml-elser-benchmark-data"
# Creates the new bucket
bucket = storage_client.create_bucket(bucket_name)
print(f"Bucket {bucket.name} created.")