code: def singleprint_from_saved_model_proto(export_dir: str) -> str:
      """Returns the singleprint of `saved_model.pb` in `export_dir`.
  
      Args:
        export_dir: The directory that contains `saved_model.pb`.
  
      Returns:
        A string containing the singleprint of `saved_model.pb` in `export_dir`.
  
      Raises:
        ValueError: If a valid singleprint cannot be constructed from
        `saved_model.pb`.
      """
      try:
          return fingerprinting_pywrap.SingleprintFromSM(export_dir)
      except FingerprintException as e:
          raise ValueError(e) from None
  
file_path: tensorflow-upstream/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 2 for calling a global function with example usage: singleprint_from_saved_model_proto(export_dir) and returns: fingerprinting_pywrap