def load_model(self, model_name, force_reload=False):
        """
        Loads a model by passing the model path to the factory.
        The factory will return a loaded model instance that will be stored in a dictionary.
        :param model_name: Model name
        :param force_reload: Boolean to specify if we need to reload a model on each call
        :return: Boolean
        """
        if not force_reload and self.model_loaded(model_name):
            return True
        model_path = os.path.join(self.base_models_dir, model_name)
        try:
            self.models_dict[model_name] = InferenceEngineFactory.get_engine(model_path)
            return True
        except ApplicationError as e:
            raise e

        Loads a model by passing the model path to the factory.
        The factory will return a loaded model instance that will be stored in a dictionary.
        :param model_name: Model name
        :param force_reload: Boolean to specify if we need to reload a model on each call
        :return: Boolean
        
inference_api/src/main/deep_learning_service.py