code: def is_same_output(
      tflite_model: bytearray,
      keras_model: tf.keras.Model,
      input_tensors: Union[List[tf.Tensor], tf.Tensor],
      atol: float = 1e-04,
  ) -> bool:
      """Returns if the output of TFLite model and keras model are identical."""
      # Gets output from lite model.
      lite_runner = model_util.get_lite_runner(tflite_model)
      lite_output = lite_runner.run(input_tensors)
  
      # Gets output from keras model.
      keras_output = keras_model.predict_on_batch(input_tensors)
  
      return np.allclose(lite_output, keras_output, atol=atol)
  
file_path: mediapipe/mediapipe/model_maker/python/core/utils/test_util.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from typing import Sequence
  from typing import Dict, List, Union
  import numpy
  import tensorflow
  from mediapipe.model_maker.python.core.data import dataset
  from mediapipe.model_maker.python.core.utils import model_util
label_desc: Use image node_id 4 for calling a global function with example usage: is_same_output(tflite_model, keras_model, input_tensors, atol) and returns: np