def required_module_list(docstring=None):
    '''
    Return a list of python modules required by a salt module that aren't
    in stdlib and don't exist on the current pythonpath.
    '''
    if not docstring:
        return []
    ret = []
    modules = parse_docstring(docstring).get('deps', [])
    for mod in modules:
        try:
            imp.find_module(mod)
        except __HOLE__:
            ret.append(mod)
    return ret
dataset/ETHPy150Open saltstack/salt/salt/utils/__init__.py/required_module_list