code: def load_model(self, config):
          
          for package_name in getattr(config.app, 'modules', []):
              module = __import__(package_name, fromlist=['model'])
              if hasattr(module, 'model'):
                  return module.model
          return None
docs: Load the model extension module