def has(module):
try:<EOL><INDENT>import_module(module)<EOL><DEDENT>except ImportError:<EOL><INDENT>return False<EOL><DEDENT>else:<EOL><INDENT>return True<EOL><DEDENT>
Test whether a module is available

    Returns `True` if `import module` succeeded, otherwise `False`