def METHOD_NAME(self, model_config):
    model, _ = load_model(model_config)
    if not isinstance(
        model, (ClassifierMixin, SpeechRecognizerMixin, ObjectDetectorMixin)
    ):
        raise TypeError(f"Unsupported model type: {type(model)}")
    return model