def find_package(packagename, searchpath=None):
    try:
        return sys.modules[packagename]
    except KeyError:
        pass
    for pkgname in _iter_subpath(packagename):
        if "." in pkgname:
            basepkg, subpkg = pkgname.rsplit(".", 1)
            pkg = sys.modules[basepkg]
            _load_package(subpkg, basepkg, pkg.__path__)
        else:
            try:
                sys.modules[pkgname]
            except KeyError:
                _load_package(pkgname, None, searchpath)
    return sys.modules[packagename]
Should return only threads in a specific group
dataset/ETHPy150Open kdart/pycopia/aid/pycopia/module.py/find_package--crossover with--dataset/ETHPy150Open ofa/connect/open_connect/connectmessages/tests/test_views.py/ThreadJSONListViewTest.test_only_specific_group