code: def find_errors(project, resource):
      
      pymodule = project.get_pymodule(resource)
      finder = _BadAccessFinder(pymodule)
      ast.walk(pymodule.get_ast(), finder)
      return finder.errors
docs: Find possible bad name and attribute accesses
  
      It returns a list of `Error`\s.