code: def buckets_insert():
      """Implement the 'Buckets: insert' API: create a new Bucket."""
      base_url = flask.url_for("gcs_index", _external=True)
      insert_magic_bucket(base_url)
      payload = json.loads(flask.request.data)
      bucket_name = payload.get("name")
      if bucket_name is None:
          raise error_response.ErrorResponse(
              "Missing bucket name in `Buckets: insert`",
              status_code=412,
          )
      if testbench_utils.has_bucket(bucket_name):
          raise error_response.ErrorResponse(
              "Bucket %s already exists" % bucket_name, status_code=400
          )
      bucket = gcs_bucket.GcsBucket(base_url, bucket_name)
      testbench_utils.insert_bucket(bucket_name, bucket)
      return testbench_utils.filtered_response(
          flask.request, bucket.metadata
      )
  
imports: import argparse
  import error_response
  import flask
  import gcs_bucket
  import gcs_object
  import json
  import os
  import re
  import testbench_utils
  import time
  import sys
  from werkzeug import serving
  from werkzeug.middleware.dispatcher import DispatcherMiddleware
label_desc: Use image node_id 11 for calling a global function with example usage: buckets_insert() and returns: testbench_utils