def can_import(name):
    try:
        __import__(name)
        return True
    except ImportError:
        return False
Show effect of current Vi command.
dataset/ETHPy150Open Pylons/pylons/pylons/commands.py/can_import--crossover with--dataset/ETHPy150Open jonathanslenders/pyvim/pyvim/commands/preview.py/CommandPreviewer.preview