code: def to_proto(
      fingerprint: fingerprinting.Fingerprint,
  ) -> fingerprint_pb2.FingerprintDef:
      return fingerprint_pb2.FingerprintDef(
          saved_model_checksum=fingerprint.saved_model_checksum,
          graph_def_program_hash=fingerprint.graph_def_program_hash,
          signature_def_hash=fingerprint.signature_def_hash,
          saved_object_graph_hash=fingerprint.saved_object_graph_hash,
          checkpoint_hash=fingerprint.checkpoint_hash,
      )
  
file_path: tensorflow/tensorflow/python/saved_model/fingerprinting_utils.py
imports: from absl import logging
  from tensorflow.core.config import flags
  from tensorflow.core.protobuf import fingerprint_pb2
  from tensorflow.python.lib.io import file_io
  from tensorflow.python.saved_model import fingerprinting
  from tensorflow.python.saved_model.pywrap_saved_model import constants
  from tensorflow.python.saved_model.pywrap_saved_model import fingerprinting
  from tensorflow.python.saved_model.pywrap_saved_model import metrics
  from tensorflow.python.util import compat
label_desc: Use image node_id 5 for calling a global function with example usage: to_proto(fingerprint) and returns: fingerprint_pb2