code: def test_save_sets_write_fingerprint_metric(self):
      exported_dir = self._create_save_v2_model()
      fingerprint = fingerprinting.read_fingerprint(exported_dir)
      fingerprint_metric = fingerprinting.Fingerprint.from_proto(
          json_format.Parse(
              metrics.GetWriteFingerprint(),
              fingerprinting.fingerprint_pb2.FingerprintDef(),
          )
      )
      self.assertEqual(fingerprint, fingerprint_metric)
  
imports: import os
  from google.protobuf import json_format
  from tensorflow.python.eager import test
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import ops
  from tensorflow.python.saved_model import builder
  from tensorflow.python.saved_model import builder_impl
  from tensorflow.python.saved_model import fingerprinting
  from tensorflow.python.saved_model import load
  from tensorflow.python.saved_model import load_v1_in_v2
  from tensorflow.python.saved_model import loader_impl
  from tensorflow.python.saved_model import save
  from tensorflow.python.saved_model.pywrap_saved_model import metrics
  from tensorflow.python.trackable import autotrackable
label_desc: Use image node_id 8 for calling the MetricsTests obj's underlying member method code with example usage: obj.test_save_sets_write_fingerprint_metric() without return types