class_docstr: Represent a single revision of a GCS Object.
class_docstr_tok: ["Represent","a","single","revision","of","a","GCS","Object","."]
docstr: Validate the md5Hash field against the stored media.
docstr_tok: ["Validate","the","md5Hash","field","against","the","stored","media","."]
code: def _validate_md5_hash(self):
      """Validate the md5Hash field against the stored media."""
      actual = self.metadata.get("md5Hash", "")
      expected = base64.b64encode(
          hashlib.md5(self.media).digest()
      ).decode("utf-8")
      if actual != expected:
          raise error_response.ErrorResponse(
              f"Mismatched MD5 hash expected={expected}, actual={actual}"
          )
  
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 4 for calling the GcsObjectVersion obj's underlying member method code with example usage: obj._validate_md5_hash() without return types