code: def load_keras_model(
      model_path: str, compile_on_load: bool = False
  ) -> tf.keras.Model:
      """Loads a tensorflow Keras model from file and returns the Keras model.
  
      Args:
        model_path: Absolute path to a directory containing model data, such as
          /<parent_path>/saved_model/.
        compile_on_load: Whether the model should be compiled while loading. If
          False, the model returned has to be compiled with the appropriate loss
          function and custom metrics before running for inference on a test
          dataset.
  
      Returns:
        A tensorflow Keras model.
      """
      return tf.keras.models.load_model(
          model_path, custom_objects={"tf": tf}, compile=compile_on_load
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import tempfile
  from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union
  import numpy
  import tensorflow
  from mediapipe.model_maker.python.core.data import dataset
  from mediapipe.model_maker.python.core.utils import quantization
label_desc: Use image node_id 2 for calling a global function with example usage: load_keras_model(model_path, compile_on_load) and returns: tf