(package, name, node)
return bool(binding)
Returns true if name is imported from package at the
        top level of the tree which node belongs to.
        To cover the case of an import like 'import foo', use
        None for the package and 'foo' for the name.
Returns true if name is imported from package at the
        top level of the tree which node belongs to.
        To cover the case of an import like 'import foo', use
        None for the package and 'foo' for the name.
Returns true if name is imported from package at the top level of the tree which node belongs to . To cover the case of an import like import foo use None for the package and foo for the name .
def does_tree_import(package, name, node):
    """ Returns true if name is imported from package at the
        top level of the tree which node belongs to.
        To cover the case of an import like 'import foo', use
        None for the package and 'foo' for the name. """
    binding = find_binding(name, find_root(node), package)
    return bool(binding)
def does_tree_import ( package , name , node ) : binding = find_binding ( name , find_root ( node ) , package ) return bool ( binding )