def METHOD_NAME(
    total_imports,
    builtin_modules=None,
    ignore=None,
):
    if ignore is None:
        ignore = []
    if builtin_modules is None:
        builtin_modules = _builtin_modules
    report_keys = [
        "required",
        "questionable",
        "builtin",
        "questionable no match",
        "required no match",
    ]
    report = {k: set() for k in report_keys}
    import_to_pkg = {k: {} for k in report_keys}
    futures = {}
    with ThreadPoolExecutor() as pool:
        for name, md in total_imports.items():
            if all(
                [
                    any(fnmatch(filename, ignore_element) for ignore_element in ignore)
                    for filename, _ in md
                ],
            ):
                continue
            elif recursively_search_for_name(name, builtin_modules):
                report["builtin"].add(name)
                continue
            future = pool.submit(extract_pkg_from_import, name)
            futures[future] = md
    for future in as_completed(futures):
        md = futures[future]
        most_likely_pkg, _import_to_pkg = future.result()
        for (filename, lineno), import_metadata in md.items():
            # Make certain to throw out imports, since an import can happen multiple times
            # under different situations, import matplotlib is required by a test file
            # but is questionable for a regular file
            if any(fnmatch(filename, ignore_element) for ignore_element in ignore):
                continue
            _name = list(_import_to_pkg.keys())[0]
            if any(import_metadata.get(v, False) for v in SKETCHY_TYPES_TABLE.values()):
                # if we couldn't find any artifacts to represent this then it doesn't exist in our maps
                if not _import_to_pkg[_name]:
                    report_key = "questionable no match"
                else:
                    report_key = "questionable"
            else:
                # if we couldn't find any artifacts to represent this then it doesn't exist in our maps
                if not _import_to_pkg[_name]:
                    report_key = "required no match"
                else:
                    report_key = "required"
            report[report_key].add(most_likely_pkg)
            import_to_pkg[report_key].update(_import_to_pkg)
    return report, import_to_pkg