@classmethod
    def _loadUserModule(cls, userModule):
        """
        Imports and returns the module object represented by the given module descriptor.

        :type userModule: ModuleDescriptor
        """
        if not userModule.belongsToToil:
            userModule = userModule.localize()
        if userModule.dirPath not in sys.path:
            sys.path.append(userModule.dirPath)
        try:
            return importlib.import_module(userModule.name)
        except __HOLE__:
            logger.error('Failed to import user module %r from sys.path=%r', userModule, sys.path)
            raise
dataset/ETHPy150Open BD2KGenomics/toil/src/toil/job.py/Job._loadUserModule