class_docstr: Represent a GCS Object, including all its revisions.
class_docstr_tok: ["Represent","a","GCS","Object",",","including","all","its","revisions","."]
docstr: Create a new rewrite token for the given operation.
docstr_tok: ["Create","a","new","rewrite","token","for","the","given","operation","."]
code: def make_rewrite_token(
      cls, operation, destination_bucket, destination_object, generation
  ):
      """Create a new rewrite token for the given operation."""
      return base64.b64encode(
          bytearray(
              "/".join(
                  [
                      str(operation.get("id")),
                      destination_bucket,
                      destination_object,
                      str(generation),
                      str(operation.get("bytes_rewritten")),
                  ]
              ),
              "utf-8",
          )
      ).decode("utf-8")
  
imports: import base64
  import crc32c
  import error_response
  import hashlib
  import json
  import struct
  import testbench_utils
  import time
label_desc: Use image node_id 18 for calling the GcsObject obj's underlying member method code with example usage: obj.make_rewrite_token(cls, operation, destination_bucket, destination_object, generation) and returns: base64