

def depend_check(deps_name, *args):
    'Check for missing dependencies'
    missing = []
    for dependency in args:
        try:
            __import__(dependency)
        except ImportError:
            missing.append(dependency)
            found = False
    print(('-' * 80))
    if len(missing):
        print((red('You are missing the following %s dependencies:') % deps_name))
        for dep in missing:
            name = pkg_info_dict.get(dep, dep)
            print(' * ', name)
        print()
        return False
    else:
        print((blue('All %s dependencies installed!  You are good to go!\n') % found))
        return True

dataset/ETHPy150Open bokeh/bokeh/scripts/devdeps.py depend_check/VarMisuse@130/196 `deps_name`->`found`