code: def xml_put_object(gcs_url, bucket_name, object_name):
      """Implement PUT for the XML API."""
      insert_magic_bucket(gcs_url)
      object_path, blob = testbench_utils.get_object(
          bucket_name,
          object_name,
          gcs_object.GcsObject(bucket_name, object_name),
      )
      generation_match = flask.request.headers.get(
          "x-goog-if-generation-match"
      )
      metageneration_match = flask.request.headers.get(
          "x-goog-if-metageneration-match"
      )
      blob.check_preconditions_by_value(
          generation_match, None, metageneration_match, None
      )
      revision = blob.insert_xml(gcs_url, flask.request)
      testbench_utils.insert_object(object_path, blob)
      response = flask.make_response("")
      response.headers["x-goog-hash"] = revision.x_goog_hash_header()
      return response
  
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 26 for calling a global function with example usage: xml_put_object(gcs_url, bucket_name, object_name) and returns: response