code: def _convert_to_tflite(saved_model_dir):
      _, tflite_file = tempfile.mkstemp()
  
      converter = tf.lite.TFLiteConverter.from_saved_model(
          saved_model_dir
      )
      tflite_model = converter.convert()
  
      with open(tflite_file, "wb") as f:
          f.write(tflite_model)
  
      return tflite_file
  
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 5 for calling a global function with example usage: _convert_to_tflite(saved_model_dir) and returns: tflite_file