code: def get_temp_export_dir(timestamped_export_dir):
    
    (dirname, basename) = os.path.split(timestamped_export_dir)
    temp_export_dir = os.path.join(
        tf.compat.as_bytes(dirname),
        tf.compat.as_bytes("temp-{}".format(basename)))
    return temp_export_dir
docs: 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>.