def load_module(self, module_path):
        """
        Load a module, initializing it and checking that it has the proper attributes
        """
        try:
            spec = importlib.util.spec_from_file_location("CMEModule", module_path)
            module = spec.loader.load_module().CMEModule()

            if self.module_is_sane(module, module_path):
                return module
        except Exception as e:
            self.logger.fail(f"Failed loading module at {module_path}: {e}")
            self.logger.debug(traceback.format_exc())
        return None

        Load a module, initializing it and checking that it has the proper attributes
        
cme/loaders/moduleloader.py