code: def load_model(filepath, model) -> None:
      """
      Load a model (tf.keras) from disk, create topology from loaded values
      and load weights.
      Args:
          filepath (str): path to model
          model: model object to load
      """
      with open(filepath, "rb") as fp:
          model_data = pickle.load(fp)
      topology = model_data["model_topology"]
      model.build(**topology)
      with tempfile.NamedTemporaryFile(suffix=".h5", delete=True) as fd:
          fd.write(model_data["model_weights"])
          fd.flush()
          model.model.load_weights(fd.name)
  
imports: import pickle
  import tempfile
  from tensorflow import keras
label_desc: Use image node_id 2 for calling a global function with example usage: load_model(filepath, model) without return types