def METHOD_NAME(self):
    module_name = self.name[:-len('.py')]
    if self.namespace:
        module_name = '__tests__.' + module_name
    try:
        __import__(module_name)
    except Exception as e:
        msg = 'Failed to load module "{}" and obtain list of tests due to an error'.format(module_name)
        logging.exception('%s: %s', msg, e)
        etype, exc, tb = sys.exc_info()
        reraise(etype, type(exc)('{}\n{}'.format(exc, msg)), tb)
    return sys.modules[module_name]