def get_plugins(package_name, paths=None):
pkg = get_latest_package(package_name, paths=paths, error=True)<EOL>if not pkg.has_plugins:<EOL><INDENT>return []<EOL><DEDENT>it = iter_package_families(paths)<EOL>package_names = set(x.name for x in it)<EOL>bar = ProgressBar("<STR_LIT>", len(package_names))<EOL>plugin_pkgs = []<EOL>for package_name_ in package_names:<EOL><INDENT>bar.next()<EOL>if package_name_ == package_name:<EOL><INDENT>continue  <EOL><DEDENT>plugin_pkg = get_latest_package(package_name_, paths=paths)<EOL>if not plugin_pkg.plugin_for:<EOL><INDENT>continue<EOL><DEDENT>for plugin_for in plugin_pkg.plugin_for:<EOL><INDENT>if plugin_for == pkg.name:<EOL><INDENT>plugin_pkgs.append(package_name_)<EOL><DEDENT><DEDENT><DEDENT>bar.finish()<EOL>return plugin_pkgs<EOL>
Find packages that are plugins of the given package.

    Args:
        package_name (str): Name of the package.
        paths (list of str): Paths to search for packages, defaults to
            `config.packages_path`.

    Returns:
        list of str: The packages that are plugins of the given package.