code: def get_temp_export_dir(timestamped_export_dir):
      """Builds a directory name based on the argument but starting with 'temp-'.
  
      This relies on the fact that TensorFlow Serving ignores subdirectories of
      the base directory that can't be parsed as integers.
  
      Args:
        timestamped_export_dir: the name of the eventual export directory, e.g.
          /foo/bar/<timestamp>
  
      Returns:
        A sister directory prefixed with 'temp-', e.g. /foo/bar/temp-<timestamp>.
      """
      (dirname, basename) = os.path.split(timestamped_export_dir)
      if isinstance(basename, bytes):
          str_name = basename.decode("utf-8")
      else:
          str_name = str(basename)
      temp_export_dir = file_io.join(
          compat.as_bytes(dirname),
          compat.as_bytes("temp-{}".format(str_name)),
      )
      return temp_export_dir
  
imports: import collections
  import os
  import time
  from tensorflow.python.lib.io import file_io
  from tensorflow.python.ops import op_selector
  from tensorflow.python.platform import gfile
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.saved_model import signature_constants
  from tensorflow.python.saved_model import signature_def_utils
  from tensorflow.python.saved_model import tag_constants
  from tensorflow.python.saved_model import utils
  from tensorflow.python.saved_model.model_utils import export_output
  from tensorflow.python.saved_model.model_utils import mode_keys
  from tensorflow.python.saved_model.model_utils.mode_keys import KerasModeKeys
  from tensorflow.python.util import compat
  from tensorflow.python.util import nest
  from tensorflow.python.util import object_identity
label_desc: Use image node_id 6 for calling a global function with example usage: get_temp_export_dir(timestamped_export_dir) and returns: temp_export_dir