code: def does_tree_import(package, name, node):
      
      binding = find_binding(name, find_root(node), package)
      return bool(binding)
docs: 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.