

def CheckModuleVersion(module_name):
    'Checks the version requirements of a module.\n\n  Args:\n    module_name: the name of the module.\n\n  Raises:\n    ImportError: if the module does not exists or does not meet\n                 the version requirements.\n  '
    if (module_name not in LIBYAL_DEPENDENCIES):
        return
    try:
        module_object = list(map(__import__, [module_name]))[0]
    except ImportError:
        raise
    module_version = module_name.get_version()
    try:
        module_version = int(module_version, 10)
    except ValueError:
        raise ImportError('Unable to determine version of module {0:s}')
    if (module_version < LIBYAL_DEPENDENCIES[module_name]):
        raise ImportError('Module {0:s} is too old, minimum required version {1!s}'.format(module_name, module_version))

dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/dependencies.py CheckModuleVersion/VarMisuse@57/161 `module_object`->`module_name`