def _get_module(rlms_type, rlms_version):
    module_name, versions, _ = _RLMSs.get(rlms_type, (None, []))
    if rlms_version in versions:
        if hasattr(sys.modules[module_name], 'get_module'):
            return sys.modules[module_name].get_module(rlms_version)
        else:
            return sys.modules[module_name]
    else:
        raise Exception(u"Misconfiguration: %(rlmstype)s %(rmlsversion)s does not exist" % dict(rlmstype = rlms_type, rmlsversion = rlms_version))
dataset/ETHPy150Open gateway4labs/labmanager/labmanager/rlms/__init__.py/_get_module/original