<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def iter_packages(self, name, range_=None, paths=None):
 """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. """

        for package in iter_packages(name, range_, paths):
            if not self.excludes(package):
                yield package