code: def default_submodels(num_classes, num_anchors):
      """Create a list of default submodels used for object detection.
  
      The default submodels contains a regression submodel and a classification submodel.
  
      Args
          num_classes : Number of classes to use.
          num_anchors : Number of base anchors.
  
      Returns
          A list of tuple, where the first element is the name of the submodel and the second element is the submodel itself.
      """
      return [
          ("regression", default_regression_model(4, num_anchors)),
          (
              "classification",
              default_classification_model(num_classes, num_anchors),
          ),
      ]
  
file_path: ImageAI/imageai_tf_deprecated/Detection/keras_retinanet/models/retinanet.py
imports: from tensorflow import keras
  from ..None import initializers
  from ..None import layers
  from ..utils.anchors import AnchorParameters
  from .None import assert_training_model
label_desc: Use image node_id 4 for calling a global function with example usage: default_submodels(num_classes, num_anchors) and returns: list