code: def _save_as_saved_model(model):
      saved_model_dir = tempfile.mkdtemp()
      model.save(saved_model_dir)
      return saved_model_dir
  
file_path: model-optimization/tensorflow_model_optimization/python/core/common/keras/compression/algorithms/periodical_update_and_scheduling_test.py
imports: import os
  import tempfile
  import tensorflow
  from tensorflow_model_optimization.python.core.common.keras.compression.algorithms import periodical_update_and_scheduling
  from tensorflow_model_optimization.python.core.keras.testing import test_utils_mnist
label_desc: Use image node_id 4 for calling a global function with example usage: _save_as_saved_model(model) and returns: saved_model_dir