def _have_module(module_name):
    try:
        import_module(module_name)
        return True
    except __HOLE__:
        return False
dataset/ETHPy150Open pydata/pandas/pandas/io/tests/test_html.py/_have_module