def is_installed(module):
    """Tests to see if ``module`` is available on the sys.path

    >>> is_installed('sys')
    True
    >>> is_installed('hopefullythisisnotarealmodule')
    False

    """
    try:
        __import__(module)
        return True
    except __HOLE__:
        return False
dataset/ETHPy150Open jsonpickle/jsonpickle/jsonpickle/util.py/is_installed