def has_module(module):
    try:
        __import__(module)
    except __HOLE__:
        warn(module + ' module not available for testing, '
             'consider installing')
        return False
    return True
dataset/ETHPy150Open jsonpickle/jsonpickle/tests/backend_test.py/has_module