def METHOD_NAME(base_name, base_path):
    """
    Dynamically loads all packages contained within thread
    backends module, including those by other module install paths
    """
    modules = load_modules(base_name, base_path)
    mod_for = {}
    for module in modules:
        if hasattr(module, "PROVIDER"):
            provider_name = module.PROVIDER
            if provider_name == "generic":
                for p_name, p in providers.items():
                    p_type = p.get("type", None)
                    if p_type == "generic" and p_name not in mod_for:
                        mod_for[p_name] = module
            else:
                mod_for[provider_name] = module
    return mod_for