code: def load_model(filepath, backbone_name="resnet50"):
      """Loads a retinanet model using the correct custom objects.
  
      Args
          filepath: one of the following:
              - string, path to the saved model, or
              - h5py.File object from which to load the model
          backbone_name         : Backbone with which the model was trained.
  
      Returns
          A keras.models.Model object.
  
      Raises
          ImportError: if h5py is not available.
          ValueError: In case of an invalid savefile.
      """
      from tensorflow import keras
  
      return keras.models.load_model(
          filepath,
          custom_objects=backbone(backbone_name).custom_objects,
      )
  
file_path: ImageAI/imageai_tf_deprecated/Detection/keras_retinanet/models/__init__.py
imports: from __future__ import print_function
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: load_model(filepath, backbone_name) and returns: keras