def can_import(name):
    """Attempt to __import__ the specified package/module, returning
    True when succeeding, otherwise False"""
    try:
        __import__(name)
        return True
    except __HOLE__:
        return False
dataset/ETHPy150Open Pylons/pylons/pylons/commands.py/can_import