code: def test_create_fingerprint_def(self):
      export_dir = test.test_src_dir_path(
          "cc/saved_model/testdata/VarsAndArithmeticObjectGraph"
      )
  
      fingerprint = fingerprint_pb2.FingerprintDef().FromString(
          pywrap_fingerprinting.CreateFingerprintDef(export_dir)
      )
  
      # We cannot check the value of the saved_model_checksum due to
      # non-determinism in saving.
      self.assertGreater(fingerprint.saved_model_checksum, 0)
      self.assertEqual(
          fingerprint.graph_def_program_hash, 10127142238652115842
      )
      self.assertEqual(
          fingerprint.signature_def_hash, 15570736222402453744
      )
      self.assertEqual(
          fingerprint.saved_object_graph_hash, 3678101440349108924
      )
      # TODO(b/242348400): The checkpoint hash is non-deterministic, so we cannot
      # check its value here.
      self.assertGreater(fingerprint.checkpoint_hash, 0)
  
file_path: tensorflow/tensorflow/python/saved_model/pywrap_saved_model_fingerprinting_test.py
imports: from tensorflow.core.protobuf import fingerprint_pb2
  from tensorflow.python.platform import test
  from tensorflow.python.saved_model.pywrap_saved_model import fingerprinting
label_desc: Use image node_id 1 for calling the FingerprintingTest obj's underlying member method code with example usage: obj.test_create_fingerprint_def() without return types