code: def objects_rewrite(
      source_bucket,
      source_object,
      destination_bucket,
      destination_object,
  ):
      """Implement the 'Objects: rewrite' API."""
      base_url = flask.url_for("gcs_index", _external=True)
      insert_magic_bucket(base_url)
      object_path, blob = testbench_utils.lookup_object(
          source_bucket, source_object
      )
      blob.check_preconditions(
          flask.request,
          if_generation_match="ifSourceGenerationMatch",
          if_generation_not_match="ifSourceGenerationNotMatch",
          if_metageneration_match="ifSourceMetagenerationMatch",
          if_metageneration_not_match="ifSourceMetagenerationNotMatch",
      )
      response = blob.rewrite_step(
          base_url,
          flask.request,
          destination_bucket,
          destination_object,
      )
      return testbench_utils.filtered_response(flask.request, 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 16 for calling a global function with example usage: objects_rewrite(source_bucket, source_object, destination_bucket, destination_object) and returns: testbench_utils