def has_installed(dependency):
    try:
        importlib.import_module(dependency)
        return True
    except __HOLE__:
        return False
dataset/ETHPy150Open python-thumbnails/python-thumbnails/tests/utils.py/has_installed