code: def iter_packages(self, name, range_=None, paths=None):
          
          for package in iter_packages(name, range_, paths):
              if not self.excludes(package):
                  yield package
docs: Same as iter_packages in packages.py, but also applies this filter.
  
          Args:
              name (str): Name of the package, eg 'maya'.
              range_ (VersionRange or str): If provided, limits the versions returned
                  to those in `range_`.
              paths (list of str, optional): paths to search for packages, defaults
                  to `config.packages_path`.
  
          Returns:
              `Package` iterator.